From 92f05cec19695994b0aa2e763dc29e8dccab4f01 Mon Sep 17 00:00:00 2001 From: CaMer0n Date: Mon, 6 Jul 2009 08:54:25 +0000 Subject: [PATCH] Theme-Manager: Only display layouts for main theme, not admin theme. --- e107_handlers/theme_handler.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/e107_handlers/theme_handler.php b/e107_handlers/theme_handler.php index 6b2463f70..19030e741 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.20 $ -| $Date: 2009-07-06 08:45:19 $ +| $Revision: 1.21 $ +| $Date: 2009-07-06 08:54:25 $ | $Author: e107coders $ +----------------------------------------------------------------------------+ */ @@ -498,7 +498,7 @@ class themeHandler{ "; } - if($theme['layouts']) // New in 0.8 ---- + if($theme['layouts'] && $mode==1) // New in 0.8 ---- { $itext .= " ".TPVLAN_50.": @@ -764,6 +764,7 @@ class themeHandler{ global $pref, $e107cache, $ns; $pref['admincss'] = $_POST['admincss']; $pref['adminstyle'] = $_POST['adminstyle']; + $e107cache->clear_sys(); save_prefs();