From e1d8cda7bda6db2796adc71132f80281f06e487e Mon Sep 17 00:00:00 2001 From: Cameron Date: Fri, 27 Feb 2015 14:35:07 -0800 Subject: [PATCH] Fixes #916 - Restrict access to experimental bootstrap3 admin area. --- e107_handlers/theme_handler.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/e107_handlers/theme_handler.php b/e107_handlers/theme_handler.php index 1acc139aa..de1dbcd30 100644 --- a/e107_handlers/theme_handler.php +++ b/e107_handlers/theme_handler.php @@ -27,7 +27,7 @@ class themeHandler var $themeConfigObj = null; var $noLog = FALSE; - private $approvedAdminThemes = array('bootstrap','bootstrap3'); + private $approvedAdminThemes = array('bootstrap'); public $allowedCategories = array('generic', 'adult', @@ -56,6 +56,12 @@ class themeHandler global $e107cache,$pref; $mes = e107::getMessage(); + + + if(isset($_SERVER['E_B3_ADMIN']) && $_SERVER['E_B3_ADMIN'] === 'true') + { + $this->approvedAdminThemes[] = 'bootstrap3'; + } require_once (e_HANDLER."form_handler.php");