phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] CVS: etemplate/inc class.boetemplate.inc.php,1.26,1.2


From: Ralf Becker <address@hidden>
Subject: [Phpgroupware-cvs] CVS: etemplate/inc class.boetemplate.inc.php,1.26,1.27
Date: Sun, 06 Oct 2002 04:49:38 -0400

Update of /cvsroot/phpgroupware/etemplate/inc
In directory subversions:/tmp/cvs-serv30107

Modified Files:
        class.boetemplate.inc.php 
Log Message:
some more to allow relative template-names not only for tabs but in general

Index: class.boetemplate.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/etemplate/inc/class.boetemplate.inc.php,v
retrieving revision 1.26
retrieving revision 1.27
diff -C2 -r1.26 -r1.27
*** class.boetemplate.inc.php   3 Oct 2002 23:47:14 -0000       1.26
--- class.boetemplate.inc.php   6 Oct 2002 08:49:36 -0000       1.27
***************
*** 63,66 ****
--- 63,73 ----
                        $this->soetemplate();
  
+                       $tname = &$name;
+                       if (is_array($name))
+                       {
+                               $tname = &$name['name'];
+                       }
+                       $tname = (strstr($tname,'.') === False ? 
(is_array($load_via) ? $load_via['name'] : $load_via).'.':'').$tname;
+ 
                        if (empty($name) || 
!$this->read($name,'','',0,'',$load_via))
                        {





reply via email to

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