From f6d66b0634c9decdc909d97d00986b1e13abf87f Mon Sep 17 00:00:00 2001 From: Kim Keown Date: Tue, 25 Oct 2016 05:46:57 -0600 Subject: [PATCH] Revise edit-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 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 30 - Replace Admin string with folder variable: Redirect::page($adminfolder, 'edit-post/'.$args['slug']); Original: Redirect::page('admin', 'edit-post/'.$args['slug']); Line 44- Reference Admin folder variable within function global $adminfolder; Line 55 - Replace Admin string with folder variable: Redirect::page($adminfolder, 'manage-posts'); Original: Redirect::page('admin', 'manage-posts'); Line 85- Reference Admin folder variable global $adminfolder; Line 90 - Replace Admin string with folder variable: Redirect::page('admin', 'manage-posts'); Original: Redirect::page('admin', 'manage-pages'); --- bl-kernel/admin/controllers/edit-post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bl-kernel/admin/controllers/edit-post.php b/bl-kernel/admin/controllers/edit-post.php index 141adb1a..4e53a7f4 100644 --- a/bl-kernel/admin/controllers/edit-post.php +++ b/bl-kernel/admin/controllers/edit-post.php @@ -79,7 +79,7 @@ if( $_SERVER['REQUEST_METHOD'] == 'POST' ) } // ============================================================================ -// Main after POST +// Main after POST // ============================================================================ global $adminfolder;