diff options
author | cash <cash.costello@gmail.com> | 2011-12-08 20:09:36 -0500 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2011-12-08 20:09:36 -0500 |
commit | 1ec7692c1639e8415cd9984d9ad040ec28bd9755 (patch) | |
tree | addb8093c044e13cbbf33412d1670fb80a27f003 /engine | |
parent | cb20d84a4ce17c8071e8f474b82341ec1aec083d (diff) | |
download | elgg-1ec7692c1639e8415cd9984d9ad040ec28bd9755.tar.gz elgg-1ec7692c1639e8415cd9984d9ad040ec28bd9755.tar.bz2 |
Fixes #4185, #2111 adds control panel widget
Diffstat (limited to 'engine')
-rw-r--r-- | engine/lib/admin.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engine/lib/admin.php b/engine/lib/admin.php index 3baf2ff61..a191d740b 100644 --- a/engine/lib/admin.php +++ b/engine/lib/admin.php @@ -225,6 +225,7 @@ function admin_init() { elgg_register_action('admin/site/update_basic', '', 'admin'); elgg_register_action('admin/site/update_advanced', '', 'admin'); + elgg_register_action('admin/site/flush_cache', '', 'admin'); elgg_register_action('admin/menu/save', '', 'admin'); @@ -301,7 +302,7 @@ function admin_init() { } // widgets - $widgets = array('online_users', 'new_users', 'content_stats', 'admin_welcome'); + $widgets = array('online_users', 'new_users', 'content_stats', 'admin_welcome', 'control_panel'); foreach ($widgets as $widget) { elgg_register_widget_type( $widget, @@ -616,7 +617,7 @@ function elgg_add_admin_widgets($event, $type, $user) { // In the form column => array of handlers in order, top to bottom $adminWidgets = array( - 1 => array('admin_welcome'), + 1 => array('control_panel', 'admin_welcome'), 2 => array('online_users', 'new_users', 'content_stats'), ); |