[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [6558] Added check on use fellesdata when displaying
From: |
Erik Holm-Larsen |
Subject: |
[Fmsystem-commits] [6558] Added check on use fellesdata when displaying sync menu-choices |
Date: |
Tue, 09 Nov 2010 12:40:48 +0000 |
Revision: 6558
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=6558
Author: erikhl
Date: 2010-11-09 12:40:48 +0000 (Tue, 09 Nov 2010)
Log Message:
-----------
Added check on use fellesdata when displaying sync menu-choices
Modified Paths:
--------------
trunk/rental/inc/class.menu.inc.php
Modified: trunk/rental/inc/class.menu.inc.php
===================================================================
--- trunk/rental/inc/class.menu.inc.php 2010-11-09 12:15:03 UTC (rev 6557)
+++ trunk/rental/inc/class.menu.inc.php 2010-11-09 12:40:48 UTC (rev 6558)
@@ -6,7 +6,11 @@
function get_menu()
{
$incoming_app =
$GLOBALS['phpgw_info']['flags']['currentapp'];
- $GLOBALS['phpgw_info']['flags']['currentapp'] =
'rental';
+ $GLOBALS['phpgw_info']['flags']['currentapp'] =
'rental';
+
+ $config = CreateObject('phpgwapi.config','rental');
+ $config->read();
+ $use_fellesdata =
$config->config_data['use_fellesdata'];
$menus = array();
@@ -84,7 +88,7 @@
'image' => array('rental',
'x-office-document')
)
);
-
+
$sub_parties = array(
'sync' => array
(
@@ -121,10 +125,13 @@
(
'text' => lang('parties'),
'url' =>
$GLOBALS['phpgw']->link('/index.php', array('menuaction'=>
'rental.uiparty.index') ),
- 'image' => array('rental',
'x-office-address-book'),
- 'children' => $sub_parties
+ 'image' => array('rental',
'x-office-address-book')
)
);
+
+ if($use_fellesdata){
+ $menus['navigation']['parties']['children'] =
$sub_parties;
+ }
$menus['admin'] = array
(
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [6558] Added check on use fellesdata when displaying sync menu-choices,
Erik Holm-Larsen <=