X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=inc%2Fclasses%2Fmain%2Fmenu%2Fclass_BaseMenu.php;h=7bb97e169a27674ddfb3f9d3c31dc4ac54d75cf3;hp=23324eddab8131ff0ef9e54121b07c53a6417ada;hb=5203f9bd014ad46fbc7ee54e7223dcd46e14e3b4;hpb=602a3281da3bcf4ab4da2d8571b921e61e167b5b diff --git a/inc/classes/main/menu/class_BaseMenu.php b/inc/classes/main/menu/class_BaseMenu.php index 23324edd..7bb97e16 100644 --- a/inc/classes/main/menu/class_BaseMenu.php +++ b/inc/classes/main/menu/class_BaseMenu.php @@ -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(); } }