[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [10802] api: fix template search
From: |
Sigurd Nes |
Subject: |
[Fmsystem-commits] [10802] api: fix template search |
Date: |
Wed, 13 Feb 2013 13:16:07 +0000 |
Revision: 10802
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=10802
Author: sigurdne
Date: 2013-02-13 13:16:06 +0000 (Wed, 13 Feb 2013)
Log Message:
-----------
api: fix template search
Modified Paths:
--------------
trunk/phpgwapi/inc/class.uicommon.inc.php
Modified: trunk/phpgwapi/inc/class.uicommon.inc.php
===================================================================
--- trunk/phpgwapi/inc/class.uicommon.inc.php 2013-02-13 13:04:48 UTC (rev
10801)
+++ trunk/phpgwapi/inc/class.uicommon.inc.php 2013-02-13 13:16:06 UTC (rev
10802)
@@ -53,8 +53,11 @@
// public $flash_msgs;
- public function __construct()
+ public function __construct($currentapp ='')
{
+
+ $currentapp = $currentapp ? $currentapp :
$GLOBALS['phpgw_info']['flags']['currentapp'];
+
// self::set_active_menu('controller');
self::add_stylesheet('phpgwapi/js/yahoo/calendar/assets/skins/sam/calendar.css');
self::add_stylesheet('phpgwapi/js/yahoo/autocomplete/assets/skins/sam/autocomplete.css');
@@ -66,9 +69,9 @@
$this->tmpl_search_path = array();
array_push($this->tmpl_search_path, PHPGW_SERVER_ROOT .
'/phpgwapi/templates/base');
array_push($this->tmpl_search_path, PHPGW_SERVER_ROOT .
'/phpgwapi/templates/' . $GLOBALS['phpgw_info']['server']['template_set']);
- array_push($this->tmpl_search_path, PHPGW_SERVER_ROOT .
'/' . $GLOBALS['phpgw_info']['flags']['currentapp'] . '/templates/base');
+ array_push($this->tmpl_search_path, PHPGW_SERVER_ROOT .
'/' . $currentapp . '/templates/base');
+ array_push($this->tmpl_search_path, PHPGW_SERVER_ROOT .
'/' . $currentapp . '/templates/' .
$GLOBALS['phpgw_info']['server']['template_set']);
-
phpgwapi_yui::load_widget('dragdrop');
phpgwapi_yui::load_widget('datatable');
phpgwapi_yui::load_widget('history');
@@ -87,7 +90,7 @@
$this->acl = & $GLOBALS['phpgw']->acl;
$this->locations = & $GLOBALS['phpgw']->locations;
- $GLOBALS['phpgw_info']['flags']['app_header'] =
lang($GLOBALS['phpgw_info']['flags']['currentapp']);
+ $GLOBALS['phpgw_info']['flags']['app_header'] =
lang($currentapp);
}
private function get_ui_session_key() {
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [10802] api: fix template search,
Sigurd Nes <=