diff options
Diffstat (limited to 'engine/lib/admin.php')
-rw-r--r-- | engine/lib/admin.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/engine/lib/admin.php b/engine/lib/admin.php index fc3ffd64c..c8ca90a2f 100644 --- a/engine/lib/admin.php +++ b/engine/lib/admin.php @@ -135,7 +135,11 @@ function send_admin_message($subject, $message) { * @param int $limit Limit */ function list_admin_messages($limit = 10) { - return list_entities('object', 'admin_message', 0, $limit); + return elgg_list_entities(array( + 'type' => 'object', + 'subtype' => 'admin_message', + 'limit' => $limit + )); } /** |