mirror of
https://github.com/e107inc/e107.git
synced 2025-03-14 01:19:44 +01:00
Fixes #916 - Restrict access to experimental bootstrap3 admin area.
This commit is contained in:
parent
8c3d707e14
commit
e1d8cda7bd
@ -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");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user