From 5eb6c8a381cb96c1ea76ad2e490dfb8f679ff772 Mon Sep 17 00:00:00 2001 From: Cameron Date: Wed, 1 Feb 2017 10:39:13 -0800 Subject: [PATCH] Admin theme refresh added. --- e107_admin/update_routines.php | 2 +- e107_handlers/theme_handler.php | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/e107_admin/update_routines.php b/e107_admin/update_routines.php index 04fa60b8f..dcddfbb97 100644 --- a/e107_admin/update_routines.php +++ b/e107_admin/update_routines.php @@ -602,7 +602,7 @@ function update_core_database($type = '') } }*/ - + } diff --git a/e107_handlers/theme_handler.php b/e107_handlers/theme_handler.php index 12af74f13..2b3bbec5d 100644 --- a/e107_handlers/theme_handler.php +++ b/e107_handlers/theme_handler.php @@ -2634,9 +2634,12 @@ class themeHandler $config->setPosted('admincss', $_POST['admincss']); } - return $config->setPosted('adminstyle', $_POST['adminstyle']) + $config->setPosted('adminstyle', $_POST['adminstyle']) ->setPosted('adminpref', varset($_POST['adminpref'], 0))->save(true,true,false); - + + + e107::redirect(e_REQUEST_URI); + /*return (e107::getConfig()->dataHasChangedFor('admincss') || e107::getConfig()->dataHasChangedFor('adminstyle') || e107::getConfig()->dataHasChangedFor('adminpref'));*/