mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 09:05:16 +01:00
added argument layout to function get_tpl_dir
This commit is contained in:
parent
e9251d17e1
commit
34deae3dde
@ -681,7 +681,7 @@
|
||||
@abstract get template dir of an application
|
||||
@param $appname appication name optional can be derived from $phpgw_info['flags']['currentapp'];
|
||||
*/
|
||||
function get_tpl_dir($appname = '')
|
||||
function get_tpl_dir($appname = '',$layout = '')
|
||||
{
|
||||
if (! $appname)
|
||||
{
|
||||
@ -726,6 +726,11 @@ if (!@is_file(PHPGW_SERVER_ROOT . '/phpgwapi/templates/' . $GLOBALS['phpgw_info'
|
||||
$tpldir = PHPGW_SERVER_ROOT . '/' . $appname . '/templates/' . $GLOBALS['phpgw_info']['server']['template_set'];
|
||||
$tpldir_default = PHPGW_SERVER_ROOT . '/' . $appname . '/templates/default';
|
||||
|
||||
if ($layout == 'default')
|
||||
{
|
||||
$tpldir = $tpldir_default;
|
||||
}
|
||||
|
||||
if (@is_dir($tpldir))
|
||||
{
|
||||
return $tpldir;
|
||||
|
Loading…
Reference in New Issue
Block a user