Revision to edit-user.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 113- Reference Admin folder variable global $adminfolder; Line 115 - Replace Admin string with folder variable: Redirect::page($adminfolder, 'users'); Original: Redirect::page('admin', 'users');
This commit is contained in:
parent
f6d66b0634
commit
fc2a350f2f
@ -110,6 +110,7 @@ if($Login->role()!=='admin') {
|
||||
$_User = $dbUsers->getUser($layout['parameters']);
|
||||
|
||||
// If the user doesn't exist, redirect to the users list.
|
||||
global $adminfolder;
|
||||
if($_User===false) {
|
||||
Redirect::page('admin', 'users');
|
||||
Redirect::page($adminfolder, 'users');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user