Revise install-plugin.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 36 - Replace Admin string with folder variable: Redirect::page($adminfolder, 'plugins'); Original: Redirect::page('admin', 'plugins');
This commit is contained in:
parent
fc2a350f2f
commit
b54418e86a
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
if($Login->role()!=='admin') {
|
if($Login->role()!=='admin') {
|
||||||
Alert::set($Language->g('you-do-not-have-sufficient-permissions'));
|
Alert::set($Language->g('you-do-not-have-sufficient-permissions'));
|
||||||
Redirect::page('admin', 'dashboard');
|
Redirect::page($adminfolder, 'dashboard');
|
||||||
}
|
}
|
||||||
|
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
@ -33,4 +33,4 @@ foreach($plugins['all'] as $P)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Redirect::page('admin', 'plugins');
|
Redirect::page($adminfolder, 'plugins');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user