[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [7441] This is a part of the "no hard coded templates
From: |
Thomas Lundquist |
Subject: |
[Fmsystem-commits] [7441] This is a part of the "no hard coded templates" - patch. |
Date: |
Tue, 28 Jun 2011 11:03:30 +0000 |
Revision: 7441
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=7441
Author: thomasez
Date: 2011-06-28 11:03:29 +0000 (Tue, 28 Jun 2011)
Log Message:
-----------
This is a part of the "no hard coded templates" - patch.
Modified Paths:
--------------
branches/dev-thomasez/bookingfrontend/inc/class.uisearch.inc.php
Modified: branches/dev-thomasez/bookingfrontend/inc/class.uisearch.inc.php
===================================================================
--- branches/dev-thomasez/bookingfrontend/inc/class.uisearch.inc.php
2011-06-28 09:07:45 UTC (rev 7440)
+++ branches/dev-thomasez/bookingfrontend/inc/class.uisearch.inc.php
2011-06-28 11:03:29 UTC (rev 7441)
@@ -12,9 +12,8 @@
{
$this->bo = CreateObject('bookingfrontend.bosearch');
parent::__construct();
- $old_top = array_pop($this->tmpl_search_path);
+ array_push($this->tmpl_search_path, PHPGW_SERVER_ROOT .
'/bookingfrontend/templates/' .
$GLOBALS['phpgw_info']['server']['template_set']);
array_push($this->tmpl_search_path, PHPGW_SERVER_ROOT .
'/booking/templates/base');
- array_push($this->tmpl_search_path, $old_top);
}
function index()
@@ -31,7 +30,10 @@
);
}
- $params = is_null($search) ? array('frontimage' =>
"{$GLOBALS['phpgw_info']['server']['webserver_url']}/phpgwapi/templates/bkbooking/images/newlayout/forsidebilde.jpg")
: array('search' => $search);
+ // Should of course be replaced with some config option for the image
+ // or using the tmpl_search_path. Need to work a little mor on this
system
+ // to find the right option. - thomasez
+ $params = is_null($search) ? array('frontimage' =>
"{$GLOBALS['phpgw_info']['server']['webserver_url']}/phpgwapi/templates/{$GLOBALS['phpgw_info']['server']['template_set']}/images/newlayout/forsidebilde.jpg")
: array('search' => $search);
self::render_template('search', $params);
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [7441] This is a part of the "no hard coded templates" - patch.,
Thomas Lundquist <=