]> git.mxchange.org Git - core.git/blobdiff - inc/classes/main/menu/class_BaseMenu.php
Opps, forgot this.
[core.git] / inc / classes / main / menu / class_BaseMenu.php
index 23324eddab8131ff0ef9e54121b07c53a6417ada..7bb97e169a27674ddfb3f9d3c31dc4ac54d75cf3 100644 (file)
@@ -61,7 +61,7 @@ class BaseMenu extends BaseFrameworkSystem {
                // Load the menu template for this page
                try {
                        $templateInstance->loadMenuTemplate($command . '_menu_entries');
-               } catch (FileIoException $e) {
+               } catch (FileNotFoundException $e) {
                        // Log exception @TODO Maybe to intrusive?
                        self::createDebugInstance(__CLASS__)->debugOutput('[' . __METHOD__ . ':' . __LINE__ . ']: Exception caught: ' . $e->__toString() . ', with message: ' . $e->getMessage());
                }
@@ -80,7 +80,7 @@ class BaseMenu extends BaseFrameworkSystem {
         */
        public function transferContentToTemplateEngine (CompileableTemplate $templateInstance) {
                // Assign menu content to variable
-               $templateInstance->assignVariable('menu_content', $this->getTemplateInstance()->getMenuContent());
+               $templateInstance->assignVariable('menu', $this->getTemplateInstance()->getMenuContent());
                //* DEBUG */ $templateInstance->debugInstance();
        }
 }