From 3e5b1380e3563f09c7f57c712f77aab8a029a9b9 Mon Sep 17 00:00:00 2001 From: Kim Keown Date: Tue, 25 Oct 2016 06:03:52 -0600 Subject: [PATCH] Revise install-theme.php- Admin folder rename Add variable in bl-kernel/boot/init.php that allows User to rename bl-kernel/admin folder. User can then define variable in bl-kernel/boot/init.php and change the foldername itself to effect the rename. Add global $adminfolder variable as necessary and replace relevant 'admin' strings with $adminfolder. Applies to most of the files in bl-kernel/admin/controllers. Line 9 - Replace Admin string with folder variable: Redirect::page($adminfolder, 'dashboard'); Original: Redirect::page('admin', 'dashboard'); Line 39 - Replace Admin string with folder variable: Redirect::page($adminfolder, 'themes'); Original: Redirect::page('admin', 'themes'); --- bl-kernel/admin/controllers/install-theme.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bl-kernel/admin/controllers/install-theme.php b/bl-kernel/admin/controllers/install-theme.php index 06437bd1..1a6204fb 100644 --- a/bl-kernel/admin/controllers/install-theme.php +++ b/bl-kernel/admin/controllers/install-theme.php @@ -6,7 +6,7 @@ if($Login->role()!=='admin') { Alert::set($Language->g('you-do-not-have-sufficient-permissions')); - Redirect::page('admin', 'dashboard'); + Redirect::page($adminfolder, 'dashboard'); } // ============================================================================ @@ -36,4 +36,4 @@ else Log::set(__METHOD__.LOG_SEP.'Error occurred when trying to install the theme: '.$themeDirname); } -Redirect::page('admin', 'themes'); +Redirect::page($adminfolder, 'themes');