diff --git a/resources/footer.php b/resources/footer.php index 0c8105f1bc..76bdb13bee 100644 --- a/resources/footer.php +++ b/resources/footer.php @@ -45,7 +45,7 @@ } //set a default template - if (strlen($_SESSION["template_content"]) == 0) { //build template if session template has no length + if (strlen($_SESSION["template_full_path"]) == 0) { //build template if session template has no length $template_base_path = $_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/themes'; if (strlen($template_rss_sub_category) > 0) { //this template was assigned by the content manager @@ -55,8 +55,7 @@ $_SESSION['domain']['template']['name'] = 'default'; $template_full_path = $template_base_path.'/default/template.php'; } - $template = file_get_contents($template_full_path); - $_SESSION["template_content"] = $template; + $_SESSION["template_full_path"] = $template_full_path; } else { //get the contents of the template and save it to the template variable @@ -65,17 +64,17 @@ $_SESSION['domain']['template']['name'] = 'default'; $template_full_path = $template_base_path.'/default/template.php'; } - $template = file_get_contents($template_full_path); - $_SESSION["template_content"] = $template; + $_SESSION["template_full_path"] = $template_full_path; } } //get the template + $template_full_path = $_SESSION["template_full_path"]; ob_start(); - $template = $_SESSION["template_content"]; - eval('?>' . $template . '