Misc/Fixup
* the first GET param, the one the page view is derived from, should not be an array
This commit is contained in:
parent
eb70065e0f
commit
a90d1d242a
1 changed files with 8 additions and 1 deletions
|
|
@ -13,7 +13,14 @@ $pageParam = '';
|
|||
parse_str(parse_url($_SERVER['REQUEST_URI'], PHP_URL_QUERY), $query);
|
||||
foreach ($query as $page => $param)
|
||||
{
|
||||
// fix page calls - pages like saerch use the page call directly and expect it as lower case
|
||||
// could be an array
|
||||
if (!is_string($param))
|
||||
{
|
||||
$pageCall = ''; // just .. fail
|
||||
break;
|
||||
}
|
||||
|
||||
// fix page calls - pages like search use the page call directly and expect it as lower case
|
||||
if (preg_match('/[A-Z]/', $page))
|
||||
{
|
||||
$url = str_replace('?'.$page.'=', '?'.Util::lower($page).'=', $_SERVER['REQUEST_URI']);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue