[geeklog-hg] geeklog: In the template class fixed function subst to return an...

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Sun Mar 23 10:44:38 EDT 2014


changeset 9522:ed8e09cef64b
url:  http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/ed8e09cef64b
user: Tom <websitemaster at cogeco.net>
date: Sun Mar 23 10:31:39 2014 -0400
description:
In the template class fixed function subst to return and empty string instead of true if it runs into problems.

diffstat:

 system/classes/template.class.php |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (30 lines):

diff -r dfdf68648099 -r ed8e09cef64b system/classes/template.class.php
--- a/system/classes/template.class.php	Sat Mar 15 21:31:59 2014 +0900
+++ b/system/classes/template.class.php	Sun Mar 23 10:31:39 2014 -0400
@@ -736,7 +736,7 @@
                 if ($this->debug & 4) {
                     echo "<p><b>subst:</b> varname $varname does not reference a file</p>\n";
                 }
-                return true;
+                return "";
             }
 
             if (!is_readable($filename)) {
@@ -744,7 +744,7 @@
                 if ($this->debug & 4) {
                     echo "<p><b>subst:</b> file $filename Does Not Exist or is not readable</p>\n";
                 }
-                return true;
+                return "";
             }
 
             $p = pathinfo($filename);
@@ -769,7 +769,7 @@
                 if ($this->debug & 4) {
                     echo "<p><b>subst:</b> varname $varname does not reference a file</p>\n";
                 }
-                return true;
+                return "";
             }
 
             ob_start();



More information about the geeklog-cvs mailing list