Fixes for link helper
authorRoland Häder <roland@mxchange.org>
Fri, 8 Aug 2008 19:44:01 +0000 (19:44 +0000)
committerRoland Häder <roland@mxchange.org>
Fri, 8 Aug 2008 19:44:01 +0000 (19:44 +0000)
inc/classes/main/helper/class_BaseHelper.php
inc/classes/main/helper/web/links/class_WebLinkHelper.php

index c861e699ae4dcb879d8700bb013a26bb622f8597..af2a663ff219bbae58119d76d17b2ea8cf863b78 100644 (file)
@@ -313,6 +313,20 @@ class BaseHelper extends BaseFrameworkSystem {
                return $content;
        }
 
+       /**
+        * Checks wether the specified group is opened
+        *
+        * @param       $groupId        Id of group to check
+        * @return      $isOpened       Wether the specified group is open
+        */
+       protected function ifGroupIsOpened ($groupId) {
+               // Is the group open?
+               $isOpened = ((isset($this->groups[$groupId])) && ($this->groups[$groupId]['opened'] === true));
+
+               // Return status
+               return $isOpened;
+       }
+
        /**
         * Getter for direct field values
         *
index f90636757aacf41bc76772cb20c107b02b9a6a69..f407889cbb12319794b1cdf0f254f2fb14f5113c 100644 (file)
@@ -102,7 +102,7 @@ class WebLinkHelper extends BaseWebHelper implements HelpableTemplate {
                        $this->closeGroupById($groupId);
                } else {
                        // Open the new group
-                       $this->openGroupByIdText($groupId, $groupText);
+                       $this->openGroupByIdContent($groupId, $groupText);
                }
        }