From 19043000aeb9a375b93cc785a9e8cba2777870e0 Mon Sep 17 00:00:00 2001 From: SecretR Date: Thu, 7 Mar 2013 10:33:24 +0200 Subject: [PATCH] Admin Language files autoload denied for new admin UI areas --- e107_admin/boot.php | 3 ++- e107_plugins/faqs/admin_config.php | 9 ++------- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/e107_admin/boot.php b/e107_admin/boot.php index be9fdd1af..5712d8045 100644 --- a/e107_admin/boot.php +++ b/e107_admin/boot.php @@ -27,7 +27,8 @@ e107::coreLan('footer', true); // DEPRECATED - plugins should load their lans manually // plugin autoload, will be removed in the future! // here mostly because of BC reasons -if(!deftrue('e_MINIMAL')) +//if(!deftrue('e_MINIMAL')) +if(!deftrue('e_ADMIN_UI')) { $_plugins = e107::getPref('plug_installed'); diff --git a/e107_plugins/faqs/admin_config.php b/e107_plugins/faqs/admin_config.php index a984c5745..0345ddd13 100644 --- a/e107_plugins/faqs/admin_config.php +++ b/e107_plugins/faqs/admin_config.php @@ -16,15 +16,10 @@ | $Author$ +----------------------------------------------------------------------------+ */ -define('e_MINIMAL',true); +//define('e_MINIMAL',true); require_once("../../class2.php"); -if (!getperms("P")) -{ - header("location:".e_BASE."index.php"); - exit; -} - +e107::lan('faqs', 'admin'); class faq_admin extends e_admin_dispatcher {