bludit/bl-kernel
Kim Keown d6e2cb7383 Revise edit-post.php - Admin folder rename
Update 10-27. Upon further reading about global variables, it seems they are only 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 the functions, the pages appear to work 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 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 88 - Replace Admin string with folder variable:
		Redirect::page($adminfolder, 'manage-posts');
Original: 	Redirect::page('admin', 'manage-pages');
2016-10-27 09:15:51 -06:00
..
2016-09-25 23:30:06 -03:00
2016-10-19 16:57:10 -03:00
2016-09-25 23:57:11 -03:00
2016-09-26 00:25:40 -03:00
2016-10-19 16:57:10 -03:00
2016-01-20 21:29:01 -03:00
2016-01-20 23:16:32 -03:00
2016-09-21 23:12:29 -03:00