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) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2016-01-11 07:14:57 +01:00
parent 6a22fbbf78
commit 4e402b6378

View File

@@ -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'])) {