From c8bf86d0d0e41075f27f7925be3e3b9fbcbebcb7 Mon Sep 17 00:00:00 2001 From: Kim Keown Date: Tue, 25 Oct 2016 04:52:32 -0600 Subject: [PATCH] Revision about.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'); --- bl-kernel/admin/controllers/about.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bl-kernel/admin/controllers/about.php b/bl-kernel/admin/controllers/about.php index 9297c685..2d6b90e2 100644 --- a/bl-kernel/admin/controllers/about.php +++ b/bl-kernel/admin/controllers/about.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'); } // ============================================================================