Revise user-password.php - Admin folder rename
Update 10-27. Upon further reading about global variables, it seems they only need to be declared when the string replacement is within a function. After testing deletion of the global intended to encompass if/else replacements occurring within a function file outside of a function, the pages appear to 'function' normally. The additional global on the function pages is apparently unnecessary, therefore I am removing them. 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 53 - Replace Admin string with folder variable: Redirect::page($adminfolder, 'users'); Original: Redirect::page('admin', 'users'); Line 69 - Replace Admin string with folder variable: Redirect::page($adminfolder, 'users'); Original: Redirect::page('admin', 'users')
This commit is contained in:
parent
bea7261e14
commit
d5a8a7846c
@ -37,8 +37,6 @@ function setPassword($username, $new_password, $confirm_password)
|
||||
// Main before POST
|
||||
// ============================================================================
|
||||
|
||||
global $adminfolder;
|
||||
|
||||
// ============================================================================
|
||||
// POST Method
|
||||
// ============================================================================
|
||||
|
Loading…
x
Reference in New Issue
Block a user