Add optional param _page_only for single-page apps etc.

This commit is contained in:
slawkens 2025-05-03 22:04:08 +02:00
parent d6ac4e8d85
commit 113473f256

View File

@ -317,6 +317,11 @@ $content .= ob_get_contents();
ob_end_clean();
$hooks->trigger(HOOK_AFTER_PAGE);
if (isset($_REQUEST['_page_only'])) {
echo $content;
die;
}
if(!isset($title)) {
$title = str_replace('index.php/', '', $page);
$title = ucfirst($title);