phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] CVS: phpgwapi/inc class.common.inc.php,1.152,1.153


From: Bettina Gille <address@hidden>
Subject: [Phpgroupware-cvs] CVS: phpgwapi/inc class.common.inc.php,1.152,1.153
Date: Wed, 25 Sep 2002 00:04:29 -0400

Update of /cvsroot/phpgroupware/phpgwapi/inc
In directory subversions:/tmp/cvs-serv25418

Modified Files:
        class.common.inc.php 
Log Message:
added argument layout to function get_tpl_dir

Index: class.common.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgwapi/inc/class.common.inc.php,v
retrieving revision 1.152
retrieving revision 1.153
diff -C2 -r1.152 -r1.153
*** class.common.inc.php        17 Sep 2002 02:47:35 -0000      1.152
--- class.common.inc.php        25 Sep 2002 04:04:24 -0000      1.153
***************
*** 682,686 ****
                @param $appname appication name optional can be derived from 
$phpgw_info['flags']['currentapp'];
                */
!               function get_tpl_dir($appname = '')
                {
                        if (! $appname)
--- 682,686 ----
                @param $appname appication name optional can be derived from 
$phpgw_info['flags']['currentapp'];
                */
!               function get_tpl_dir($appname = '',$layout = '')
                {
                        if (! $appname)
***************
*** 726,729 ****
--- 726,734 ----
                        $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))





reply via email to

[Prev in Thread] Current Thread [Next in Thread]