| @@ 93-98 (lines=6) @@ | ||
| 90 | $hasviews = []; |
|
| 91 | foreach ($modules as $module) { |
|
| 92 | $not_config = $module->getInfo('notification'); |
|
| 93 | foreach ($not_config['category'] as $category) { |
|
| 94 | if (!empty($category['item_name'])) { |
|
| 95 | $script = is_array($category['subscribe_from']) ? implode(':', $category['subscribe_from']) : $category['subscribe_from']; |
|
| 96 | $hasviews[$module->dirname() . ':' . $script . '-' . $category['item_name']] = $module->dirname() . '/' . $script . '?' . $category['item_name'] . '=ITEM_ID'; |
|
| 97 | } |
|
| 98 | } |
|
| 99 | } |
|
| 100 | ||
| 101 | $i = 0; |
|
| @@ 204-209 (lines=6) @@ | ||
| 201 | $dirNames[$mObj->dirname()] = $mObj->name(); |
|
| 202 | $not_config = $mObj->getInfo('notification'); |
|
| 203 | if (!empty($not_config['category'])) { |
|
| 204 | foreach ($not_config['category'] as $category) { |
|
| 205 | if (!empty($category['item_name'])) { |
|
| 206 | $script = is_array($category['subscribe_from']) ? implode(':', $category['subscribe_from']) : $category['subscribe_from']; |
|
| 207 | $itemLinks[$mObj->dirname() . ':' . $script . '-' . $category['item_name']] = $mObj->dirname() . '/' . $script . '?' . $category['item_name'] . '=ITEM_ID'; |
|
| 208 | } |
|
| 209 | } |
|
| 210 | } |
|
| 211 | } |
|
| 212 | $moduleEl = new XoopsFormSelect(_AM_USERLOG_MODULES, 'modules', $modules, 5, true); |
|