X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=framework%2Fmain%2Fclasses%2Fmenu%2Fclass_BaseMenu.php;h=642a01ba79946e6023a5d49d3099cf3febd9606b;hp=fb309963cb7be42f42f50e74590187cb67da0db3;hb=b002c5909aa0f781505dde5414964b0f014cde01;hpb=78a010fef84895720e796842208f01dfb619c332 diff --git a/framework/main/classes/menu/class_BaseMenu.php b/framework/main/classes/menu/class_BaseMenu.php index fb309963..642a01ba 100644 --- a/framework/main/classes/menu/class_BaseMenu.php +++ b/framework/main/classes/menu/class_BaseMenu.php @@ -1,11 +1,14 @@ . */ -class BaseMenu extends BaseFrameworkSystem { +abstract class BaseMenu extends BaseFrameworkSystem { /** * Protected constructor * @@ -58,12 +61,12 @@ class BaseMenu extends BaseFrameworkSystem { $templateInstance->loadMenuTemplate('generic_menu_entries'); // Get the 'command' from request instance - $command = $this->getApplicationInstance()->getRequestInstance()->getRequestElement('command'); + $command = FrameworkBootstrap::getRequestInstance()->getRequestElement('command'); // If page is empty, choose default if (empty($command)) { // Use default page as none has been specified - $command = $this->getConfigInstance()->getConfigEntry('default_' . $this->getApplicationInstance()->getAppShortName() . '_' . self::getResponseTypeFromSystem() . '_command'); + $command = $this->getConfigInstance()->getConfigEntry('default_' . GenericRegistry::getRegistry()->getInstance('app')->getAppShortName() . '_' . FrameworkBootstrap::getRequestTypeFromSystem() . '_command'); } // END - if // Load the menu template for this page