Revise new-page.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 15 - Reference Admin folder variable within function global $adminfolder; Line 27 - Replace Admin string with folder variable: Redirect::page($adminfolder, 'manage-pages'); Original: Redirect::page('admin', 'manage-pages');
This commit is contained in:
parent
bc50352c93
commit
75ea887348
@ -12,6 +12,7 @@ function addPage($args)
|
|||||||
{
|
{
|
||||||
global $dbPages;
|
global $dbPages;
|
||||||
global $Language;
|
global $Language;
|
||||||
|
global $adminfolder;
|
||||||
|
|
||||||
// Add the page, if the $key is FALSE the creation of the post failure.
|
// Add the page, if the $key is FALSE the creation of the post failure.
|
||||||
$key = $dbPages->add($args);
|
$key = $dbPages->add($args);
|
||||||
@ -23,7 +24,7 @@ function addPage($args)
|
|||||||
|
|
||||||
// Alert the user
|
// Alert the user
|
||||||
Alert::set($Language->g('Page added successfully'));
|
Alert::set($Language->g('Page added successfully'));
|
||||||
Redirect::page('admin', 'manage-pages');
|
Redirect::page($adminfolder, 'manage-pages');
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user