From 0bde4fa3a8b5e12f3231cd47421f7c32c168ffb0 Mon Sep 17 00:00:00 2001 From: CaMer0n Date: Tue, 7 Jul 2009 02:25:05 +0000 Subject: [PATCH] Added page refresh when changing admin theme. --- e107_handlers/theme_handler.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/e107_handlers/theme_handler.php b/e107_handlers/theme_handler.php index 2181088d5..cbe786656 100644 --- a/e107_handlers/theme_handler.php +++ b/e107_handlers/theme_handler.php @@ -11,8 +11,8 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_handlers/theme_handler.php,v $ -| $Revision: 1.23 $ -| $Date: 2009-07-06 09:28:02 $ +| $Revision: 1.24 $ +| $Date: 2009-07-07 02:25:05 $ | $Author: e107coders $ +----------------------------------------------------------------------------+ */ @@ -58,6 +58,7 @@ class themeHandler{ { $this -> id = key($post); $this -> setAdminTheme(); + $this -> refreshPage('admin'); } } @@ -65,6 +66,7 @@ class themeHandler{ { $this -> id = $_POST['curTheme']; $this -> setAdminStyle(); + } if(isset($_POST['submit_style'])) @@ -682,6 +684,11 @@ class themeHandler{ return $text; } + function refreshPage($page=e_QUERY) + { + header("Location: ".e_SELF."?".$page); + exit; + } function themePreview() {