mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-02 11:29:23 +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
|
@abstract get template dir of an application
|
||||||
@param $appname appication name optional can be derived from $phpgw_info['flags']['currentapp'];
|
@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)
|
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 = PHPGW_SERVER_ROOT . '/' . $appname . '/templates/' . $GLOBALS['phpgw_info']['server']['template_set'];
|
||||||
$tpldir_default = PHPGW_SERVER_ROOT . '/' . $appname . '/templates/default';
|
$tpldir_default = PHPGW_SERVER_ROOT . '/' . $appname . '/templates/default';
|
||||||
|
|
||||||
|
if ($layout == 'default')
|
||||||
|
{
|
||||||
|
$tpldir = $tpldir_default;
|
||||||
|
}
|
||||||
|
|
||||||
if (@is_dir($tpldir))
|
if (@is_dir($tpldir))
|
||||||
{
|
{
|
||||||
return $tpldir;
|
return $tpldir;
|
||||||
|
Loading…
Reference in New Issue
Block a user