added argument layout to function get_tpl_dir

This commit is contained in:
ceb 2002-09-25 04:04:24 +00:00
parent e9251d17e1
commit 34deae3dde

View File

@ -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;