mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-29 18:59:21 +02:00
* fixed loading of custom pages
This commit is contained in:
parent
be38f51cc7
commit
9ee6906e4d
@ -144,10 +144,16 @@ else {
|
|||||||
// define page visited, so it can be used within events system
|
// define page visited, so it can be used within events system
|
||||||
$page = isset($_REQUEST['subtopic']) ? $_REQUEST['subtopic'] : (isset($_REQUEST['p']) ? $_REQUEST['p'] : '');
|
$page = isset($_REQUEST['subtopic']) ? $_REQUEST['subtopic'] : (isset($_REQUEST['p']) ? $_REQUEST['p'] : '');
|
||||||
if(empty($page) || !preg_match('/^[A-z0-9\_\-]+$/', $page)) {
|
if(empty($page) || !preg_match('/^[A-z0-9\_\-]+$/', $page)) {
|
||||||
|
$tmp = URI;
|
||||||
|
if(!empty($tmp)) {
|
||||||
|
$page = $tmp;
|
||||||
|
}
|
||||||
|
else {
|
||||||
if(!$found)
|
if(!$found)
|
||||||
$page = '404';
|
$page = '404';
|
||||||
else
|
else
|
||||||
$page = 'news';
|
$page = 'news';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$page = strtolower($page);
|
$page = strtolower($page);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user