This commit is contained in:
Richard Mikloš 2024-01-20 19:59:54 +01:00
parent c1673b3251
commit 4a5886df49

@ -65,7 +65,7 @@ if (isset($_SESSION['user_id'])) {
$page_data = str_replace('<template name="username">', $_SESSION['user_username'], $page_data);
}
$page_regex = '/<!--PAGENAME=(.*?)-->/';
$page_regex = '/<!--PAGENAME=(.*?)-->/s';
if(preg_match($page_regex, $page_data, $matches)){
$page_name = $matches[1];