[geeklog-cvs] geeklog-1.3/system/classes template.class.php,1.5,1.6

geeklog-cvs-admin at lists.geeklog.net geeklog-cvs-admin at lists.geeklog.net
Fri Jun 6 15:09:57 EDT 2003


Update of /usr/cvs/geeklog/geeklog-1.3/system/classes
In directory internal.geeklog.net:/tmp/cvs-serv23218/system/classes

Modified Files:
	template.class.php 
Log Message:
Patch to avoid that confusing // in the path when a template file does not exist.


Index: template.class.php
===================================================================
RCS file: /usr/cvs/geeklog/geeklog-1.3/system/classes/template.class.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** template.class.php	27 Nov 2002 17:44:18 -0000	1.5
--- template.class.php	6 Jun 2003 19:09:50 -0000	1.6
***************
*** 198,201 ****
--- 198,204 ----
        echo "<p><b>set_root:</b> root = $root</p>\n";
      }
+     if (substr ($root, -1) == '/') {
+       $root = substr ($root, 0, -1);
+     }
      if (!is_dir($root)) {
        $this->halt("set_root: $root is not a directory.");





More information about the geeklog-cvs mailing list