diff options
Diffstat (limited to 'engine')
-rw-r--r-- | engine/lib/admin.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/engine/lib/admin.php b/engine/lib/admin.php index 8ef01e7cc..efb1a4581 100644 --- a/engine/lib/admin.php +++ b/engine/lib/admin.php @@ -25,6 +25,9 @@ */ function elgg_add_admin_notice($id, $message) { if ($id && $message) { + if (elgg_admin_notice_exists($id)) { + return false; + } $admin_notice = new ElggObject(); $admin_notice->subtype = 'admin_notice'; // admins can see ACCESS_PRIVATE but no one else can. @@ -173,6 +176,8 @@ function admin_init() { elgg_register_action('admin/menu/save', '', 'admin'); + elgg_register_action('admin/delete_admin_notice', '', 'admin'); + elgg_register_action('admin/plugins/simple_update_states', '', 'admin'); elgg_register_action('profile/fields/reset', '', 'admin'); |