[Smarttemplate-cvscommit] smarttemplate class.smarttemplateparser.php, 1.11, 1.12
Brought to you by:
codeworxtech
|
From: EndelWar <end...@us...> - 2006-08-01 00:39:19
|
Update of /cvsroot/smarttemplate/smarttemplate In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv11014 Modified Files: class.smarttemplateparser.php Log Message: Smarter count_subtemplates Index: class.smarttemplateparser.php =================================================================== RCS file: /cvsroot/smarttemplate/smarttemplate/class.smarttemplateparser.php,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** class.smarttemplateparser.php 23 Jul 2006 12:32:37 -0000 1.11 --- class.smarttemplateparser.php 1 Aug 2006 00:39:13 -0000 1.12 *************** *** 356,362 **** function count_subtemplates() { ! preg_match_all('/<!-- INCLUDE ([a-zA-Z0-9_.]+) -->/', $this->template, $tvar); ! $count_subtemplates = count($tvar[1]); ! $ret = intval($count_subtemplates); return $ret; } --- 356,361 ---- function count_subtemplates() { ! $ret = preg_match_all('/<!-- INCLUDE ([a-zA-Z0-9_.]+) -->/', $this->template, $tvar); ! unset($tvar); return $ret; } |