]> git.mxchange.org Git - core.git/blobdiff - framework/main/classes/menu/class_BaseMenu.php
Continued:
[core.git] / framework / main / classes / menu / class_BaseMenu.php
index f73d34e0b3118bfd7cadc399ee41b29151faa67b..60b92f0bdc51e265d0ba6f52ca5644f43473a798 100644 (file)
@@ -56,7 +56,7 @@ abstract class BaseMenu extends BaseFrameworkSystem {
         */
        public function renderMenu () {
                // Initialize the menu system by preparing it's template instance
-               $templateInstance = ObjectFactory::createObjectByConfiguredName('menu_template_class', array($this));
+               $templateInstance = ObjectFactory::createObjectByConfiguredName('menu_template_class', [$this]);
 
                // Set it for later use
                $this->setTemplateInstance($templateInstance);
@@ -71,7 +71,7 @@ abstract class BaseMenu extends BaseFrameworkSystem {
                if (empty($command)) {
                        // Use default page as none has been specified
                        $command = FrameworkBootstrap::getConfigurationInstance()->getConfigEntry('default_' . ApplicationHelper::getSelfInstance()->getAppShortName() . '_' . FrameworkBootstrap::getRequestTypeFromSystem() . '_command');
-               } // END - if
+               }
 
                // Load the menu template for this page
                try {