mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 17:29:21 +02:00
allow template pages to be placed in templates dir
This commit is contained in:
parent
60a854e5fd
commit
a84c92e007
@ -335,6 +335,9 @@ if($load_it)
|
||||
)) . $content;
|
||||
}
|
||||
} else {
|
||||
$file = TEMPLATES . $template_name . '/pages/' . $page . '.php';
|
||||
if(!@file_exists($file) || preg_match('/[^A-z0-9_\-]/', $page))
|
||||
{
|
||||
$file = SYSTEM . 'pages/' . $page . '.php';
|
||||
if(!@file_exists($file) || preg_match('/[^A-z0-9_\-]/', $page))
|
||||
{
|
||||
@ -342,6 +345,7 @@ if($load_it)
|
||||
$file = SYSTEM . 'pages/404.php';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ob_start();
|
||||
if($hooks->trigger(HOOK_BEFORE_PAGE)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user