From 7dae7dc510651d25c4109e9943be8c2dc84260ff Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Thu, 12 Mar 2009 03:54:17 +0000 Subject: Strip down the loin page (not sure if this is what bharat had in mind) --- core/libraries/Theme_View.php | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'core') diff --git a/core/libraries/Theme_View.php b/core/libraries/Theme_View.php index e992103f..cc36de03 100644 --- a/core/libraries/Theme_View.php +++ b/core/libraries/Theme_View.php @@ -72,15 +72,17 @@ class Theme_View_Core extends View { public function site_menu() { $menu = Menu::factory("root"); - core_menu::site($menu, $this); + if ($this->page_type != "login") { + core_menu::site($menu, $this); - foreach (module::installed() as $module) { - if ($module->name == "core") { - continue; - } - $class = "{$module->name}_menu"; - if (method_exists($class, "site")) { - call_user_func_array(array($class, "site"), array(&$menu, $this)); + foreach (module::installed() as $module) { + if ($module->name == "core") { + continue; + } + $class = "{$module->name}_menu"; + if (method_exists($class, "site")) { + call_user_func_array(array($class, "site"), array(&$menu, $this)); + } } } -- cgit v1.2.3