Author: dr
Date: Wed Jan 23 16:29:48 2008
New Revision: 7240
Log:
- Move count() outside the loop.
Modified:
trunk/Template/src/parsers/interfaces/tree_output.php
Modified: trunk/Template/src/parsers/interfaces/tree_output.php
==============================================================================
--- trunk/Template/src/parsers/interfaces/tree_output.php [iso-8859-1]
(original)
+++ trunk/Template/src/parsers/interfaces/tree_output.php [iso-8859-1] Wed Jan
23 16:29:48 2008
@@ -269,7 +269,8 @@
$start = 1;
$text .= $lines[0] . "\n";
}
- for ( $line = $start; $line < count( $lines ); ++$line )
+ $linesCount = count( $lines );
+ for ( $line = $start; $line < $linesCount; ++$line )
{
if ( $line > $start )
$text .= "\n";
--
svn-components mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/svn-components