]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/active_functions.php
Rewrites/fixes for surfbar
[mailer.git] / inc / libs / active_functions.php
index 124ed344612d5675449b6f12d46fca63e3868c9b..302480e265ec4b21762fb20b881275d48922a613 100644 (file)
@@ -44,12 +44,14 @@ if (!defined('__SECURITY')) {
 
 // Filter for adding link to "active list"
 function FILTER_ADD_LINK_ACTIVE_LIST () {
-       // Are the extensions online and active there?
-       if (isExtensionActive('online')) {
-               // Init content
+       // Is ext-active/online there?
+       if ((isExtensionActive('active')) && (isExtensionActive('online'))) {
+               // Init fake-content because there is no `what`='active' in database
                $content = array(
-                       'menu' => '<a class="menu_blur" href="{%url=modules.php?module=index&amp;what=active%}">{%config=menu_blur_spacer%}{--GUEST_ACTIVE_LINK--}</a>',
-                       'what' => 'active'
+                       'menu'    => '<a class="menu_blur" href="{%url=modules.php?module=index&amp;what=active%}">{%config=menu_blur_spacer%}{--GUEST_ACTIVE_LINK--}</a>',
+                       'what'    => 'active',
+                       'visible' => 'Y',
+                       'locked'  => 'N'
                );
 
                // Add link to "we were active today" page