mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-27 09:49:22 +02:00
Dirty workaround for fb links
This commit is contained in:
parent
7a61f613ec
commit
ba4d2a9c48
@ -154,6 +154,12 @@ else {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// handle ?fbclid=x, etc. (show news page)
|
||||||
|
if (!$found && count($_GET) > 0 && !isset($_REQUEST['subtopic']) && !isset($_REQUEST['p'])) {
|
||||||
|
$_REQUEST['p'] = $_REQUEST['subtopic'] = 'news';
|
||||||
|
$found = true;
|
||||||
|
}
|
||||||
|
|
||||||
// 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)) {
|
||||||
|
3
templates/kathrine/images/pages/test.php
Normal file
3
templates/kathrine/images/pages/test.php
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
echo 'Test';
|
Loading…
x
Reference in New Issue
Block a user