From 4e402b6378a490cf52dd427c03355dee8206700a Mon Sep 17 00:00:00 2001 From: "Michael Kaufmann (d00p)" Date: Mon, 11 Jan 2016 07:14:57 +0100 Subject: [PATCH] unset js and css variables of theme after using footer-template so they can be used there instead of the header-template only, fixes #1580 Signed-off-by: Michael Kaufmann (d00p) --- lib/init.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/init.php b/lib/init.php index 927c4ea1..0bdc9341 100644 --- a/lib/init.php +++ b/lib/init.php @@ -505,12 +505,13 @@ if (array_key_exists('css', $_themeoptions['variants'][$themevariant]) && is_arr } } eval("\$header = \"" . getTemplate('header', '1') . "\";"); -unset($js); -unset($css); $current_year = date('Y', time()); eval("\$footer = \"" . getTemplate('footer', '1') . "\";"); +unset($js); +unset($css); + if (isset($_POST['action'])) { $action = $_POST['action']; } elseif(isset($_GET['action'])) {