diff options
author | cash <cash.costello@gmail.com> | 2011-11-04 22:40:06 -0400 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2011-11-04 22:40:06 -0400 |
commit | 54773892f88f53231b85d08d86d11557121d9609 (patch) | |
tree | fcc3738cf8104caf4d65ca261a973458363d19f8 /engine/lib/admin.php | |
parent | 61a7e2e9e138ec166227794e2de96bdd8a268957 (diff) | |
download | elgg-54773892f88f53231b85d08d86d11557121d9609.tar.gz elgg-54773892f88f53231b85d08d86d11557121d9609.tar.bz2 |
Fixes #4059 page handlers all return nothing
Diffstat (limited to 'engine/lib/admin.php')
-rw-r--r-- | engine/lib/admin.php | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/engine/lib/admin.php b/engine/lib/admin.php index ae6429baf..c0a5c0995 100644 --- a/engine/lib/admin.php +++ b/engine/lib/admin.php @@ -314,7 +314,7 @@ function admin_init() { // automatic adding of widgets for admin elgg_register_event_handler('make_admin', 'user', 'elgg_add_admin_widgets'); - elgg_register_page_handler('admin', 'admin_settings_page_handler'); + elgg_register_page_handler('admin', 'admin_page_handler'); elgg_register_page_handler('admin_plugin_screenshot', 'admin_plugin_screenshot_page_handler'); elgg_register_page_handler('admin_plugin_text_file', 'admin_markdown_page_handler'); } @@ -430,7 +430,7 @@ function admin_pagesetup() { * @return void * @access private */ -function admin_settings_page_handler($page) { +function admin_page_handler($page) { admin_gatekeeper(); elgg_admin_add_plugin_settings_menu(); @@ -485,7 +485,7 @@ function admin_settings_page_handler($page) { * admin_plugin_screenshot/<plugin_id>/<size>/<ss_name>.<ext> * * @param array $pages The pages array - * @return true + * @return void * @access private */ function admin_plugin_screenshot_page_handler($pages) { @@ -524,8 +524,6 @@ function admin_plugin_screenshot_page_handler($pages) { echo file_get_contents($file); break; } - - return true; } /** @@ -541,6 +539,7 @@ function admin_plugin_screenshot_page_handler($pages) { * * LICENSE.txt * * @param type $page + * @return void * @access private */ function admin_markdown_page_handler($pages) { |