phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] phpgwapi/inc class.Template.inc.php,1.38


From: skwashd
Subject: [Phpgroupware-cvs] phpgwapi/inc class.Template.inc.php,1.38
Date: Wed, 8 Jun 2005 13:20:00 +0200

Update of phpgwapi/inc

Modified Files:
     Branch: MAIN
            class.Template.inc.php lines: +2 -4

Log Message:
fix fallback template

====================================================
Index: phpgwapi/inc/class.Template.inc.php
diff -u phpgwapi/inc/class.Template.inc.php:1.37 
phpgwapi/inc/class.Template.inc.php:1.38
--- phpgwapi/inc/class.Template.inc.php:1.37    Sun May 15 14:36:28 2005
+++ phpgwapi/inc/class.Template.inc.php Wed Jun  8 11:20:15 2005
@@ -386,9 +386,7 @@
                                }
                                else
                                {
-                                       //$new_root = 
str_replace($GLOBALS['phpgw_info']['server']['template_set'],'base',$root);
-                                       $new_root = 
ereg_replace($GLOBALS['phpgw_info']['server']['template_set'].'$','base',$root);
-
+                                       $new_root = substr($root, 0, (0 - 
strlen($GLOBALS['phpgw_info']['server']['template_set']))) . 'base';
                                        $new_filename = 
$this->filename(str_replace($root.'/','',$new_filename),$new_root,2);
                                }
                        }






reply via email to

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