Update jQuery from 1.12.4 to 3.7.1
[phorkie.git] / www / search.php
index 9c7ff6e5c77a2cb9ac549b15eb736c66f9842403..82b40a7bad75ea36b332bad5e3d215dccc697196 100644 (file)
@@ -7,7 +7,7 @@ $reqWritePermissions = false;
 require_once 'www-header.php';
 
 if (!isset($_GET['q']) || $_GET['q'] == '') {
-    header('Location: ' . Tools::fullUrl('/list'));
+    header('Location: ' . Tools::fullUrl('list'));
     exit();
 }
 $query = $_GET['q'];
@@ -20,7 +20,7 @@ if (isset($_GET['page'])) {
     //PEAR Pager begins at 1
     $page = (int)$_GET['page'] - 1;
 }
-$perPage = 10;
+$perPage = $GLOBALS['phorkie']['cfg']['perPage'];
 
 $db     = new Database();
 $search = $db->getSearch();