@@ 46-48 (lines=3) @@ | ||
43 | $section['events'] = array(); |
|
44 | $subscribed_events = $notification_handler->getSubscribedEvents($category['name'], $category['item_id'], $xoops->module->getVar('mid'), $xoops->user->getVar('uid')); |
|
45 | foreach (notificationEvents($category['name'], true) as $event) { |
|
46 | if (!empty($event['admin_only']) && !$xoops->user->isAdmin($xoops->module->getVar('mid'))) { |
|
47 | continue; |
|
48 | } |
|
49 | $subscribed = in_array($event['name'], $subscribed_events) ? 1 : 0; |
|
50 | $section['events'][$event['name']] = array( |
|
51 | 'name' => $event['name'], 'title' => $event['title'], 'caption' => $event['caption'], |
@@ 65-67 (lines=3) @@ | ||
62 | $section['events'] = array(); |
|
63 | $subscribed_events = $notification_handler->getSubscribedEvents($category['name'], $category['item_id'], $xoops->module->getVar('mid'), $xoops->user->getVar('uid')); |
|
64 | foreach ($helper->getEvents($category['name'], true, $xoops->module->getVar('dirname')) as $event) { |
|
65 | if (!empty($event['admin_only']) && !$xoops->user->isAdmin($xoops->module->getVar('mid'))) { |
|
66 | continue; |
|
67 | } |
|
68 | if (!empty($event['invisible'])) { |
|
69 | continue; |
|
70 | } |