summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-03-12 03:54:17 +0000
committerTim Almdal <tnalmdal@shaw.ca>2009-03-12 03:54:17 +0000
commit7dae7dc510651d25c4109e9943be8c2dc84260ff (patch)
tree7625070e6f300291d39f171d6f72b4b61e99defb /core
parentd1f181da08cbb747a7353bf84fbaa5d1ab82bd02 (diff)
Strip down the loin page (not sure if this is what bharat had in mind)
Diffstat (limited to 'core')
-rw-r--r--core/libraries/Theme_View.php18
1 files changed, 10 insertions, 8 deletions
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));
+ }
}
}