As it turns out '$template_dir' is not established yet. I found the query.
Code:
$template_dir = "";
$sql = "select template_dir
from " . TABLE_TEMPLATE_SELECT . "
where template_language = 0";
$template_query = $db->Execute($sql);
$template_dir = $template_query->fields['template_dir'];
Which gives me;
Code:
require (DIR_WS_LANGUAGES . $_SESSION['language'] . "/" . $template_dir . "/" . $_GET['main_page'] . ".php");
This is my 'hook' in 'init_sanitize.php' so some variables are not yet initialized.
This all happens before the 'header_php.php'.
Thanks.
Bookmarks