Revise new-post.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 as necessary and replace relevant 'admin' strings with $adminfolder. Applies to most of the files in bl-kernel/admin/controllers. Line 14 - Reference Admin folder variable within function global $adminfolder; Line 29 - Replace Admin string with folder variable: Redirect::page($adminfolder, 'manage-posts'); Original: Redirect::page('admin', 'manage-posts');
This commit is contained in:
parent
75ea887348
commit
9ee2292b7b
@ -11,6 +11,7 @@ function addPost($args)
|
||||
{
|
||||
global $dbPosts;
|
||||
global $Language;
|
||||
global $adminfolder;
|
||||
|
||||
// Add the page, if the $key is FALSE the creation of the post failure.
|
||||
$key = $dbPosts->add($args);
|
||||
@ -25,7 +26,7 @@ function addPost($args)
|
||||
|
||||
// Alert for the user
|
||||
Alert::set($Language->g('Post added successfully'));
|
||||
Redirect::page('admin', 'manage-posts');
|
||||
Redirect::page($adminfolder, 'manage-posts');
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user