X-Git-Url: https://git.cweiske.de/phorkie.git/blobdiff_plain/dff68e21ac958ebfb8164bca4cb2143c427f4330..256dda0773f9d540ab4b276949b4f98215261828:/www/search.php diff --git a/www/search.php b/www/search.php index 8701911..82b40a7 100644 --- a/www/search.php +++ b/www/search.php @@ -3,11 +3,11 @@ namespace phorkie; /** * Search for a search term */ -$pageRequiresLogin = false; +$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();