Commit 710bada8 authored by Robert Lyon's avatar Robert Lyon
Browse files

Bug 1417828: Need to fetch admin activity types as well



When finding out the activity type string for the 'email digest' email

behatnotneeded: checking text in email

Change-Id: Ib90f3f1e8eb0e2942ac268d5ad1f664588ece006
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
(cherry picked from commit 5a1522f5)
parent b9befb6b
......@@ -43,7 +43,7 @@ class PluginNotificationEmaildigest extends PluginNotification {
$users = array();
$sitename = get_config('sitename');
$types = get_records_assoc('activity_type', 'admin', 0, 'plugintype,pluginname,name', 'id,name,plugintype,pluginname');
$types = get_records_assoc('activity_type', null, null, 'plugintype,pluginname,name', 'id,name,plugintype,pluginname');
foreach ($types as &$type) {
if (!empty($type->plugintype)) {
$type->section = "{$type->plugintype}.{$type->pluginname}";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment