[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [6527] API: when to call for menus
From: |
Sigurd Nes |
Subject: |
[Fmsystem-commits] [6527] API: when to call for menus |
Date: |
Sun, 31 Oct 2010 15:12:22 +0000 |
Revision: 6527
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=6527
Author: sigurdne
Date: 2010-10-31 15:12:22 +0000 (Sun, 31 Oct 2010)
Log Message:
-----------
API: when to call for menus
Modified Paths:
--------------
trunk/phpgwapi/inc/class.menu.inc.php
Modified: trunk/phpgwapi/inc/class.menu.inc.php
===================================================================
--- trunk/phpgwapi/inc/class.menu.inc.php 2010-10-31 15:09:34 UTC (rev
6526)
+++ trunk/phpgwapi/inc/class.menu.inc.php 2010-10-31 15:12:22 UTC (rev
6527)
@@ -343,6 +343,15 @@
public function get_local_menu($app = '')
{
$app = $app ? $app :
$GLOBALS['phpgw_info']['flags']['currentapp'];
+ switch ( $app )
+ {
+ case 'home':
+ case 'login':
+ return array();
+ default:
+ // nothing
+ }
+
if(!$menu =
$GLOBALS['phpgw']->session->appsession($GLOBALS['phpgw_info']['flags']['menu_selection'],
"menu_{$app}"))
{
$menu_gross =
execMethod("{$app}.menu.get_menu",'horisontal');
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [6527] API: when to call for menus,
Sigurd Nes <=