From 3db6ba2561ab4a0427ca2c4af72dcd82fd4ea097 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Sat, 27 Sep 2003 20:44:43 +0000 Subject: [PATCH] Allow for start,end values within begin/end loops git-svn-id: file:///svn/phpbb/trunk@4514 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/template.php | 49 ++++++++++++++++++++++--------------- 1 file changed, 29 insertions(+), 20 deletions(-) diff --git a/phpBB/includes/template.php b/phpBB/includes/template.php index 3673b0b7fe..abd9ebf516 100644 --- a/phpBB/includes/template.php +++ b/phpBB/includes/template.php @@ -1,23 +1,15 @@ block_names, $tag_args); @@ -501,7 +510,7 @@ class template } $tag_template_php .= 'if ($_' . $tag_args . '_count) {'; - $tag_template_php .= 'for ($this->_' . $tag_args . '_i = 0; $this->_' . $tag_args . '_i < $_' . $tag_args . '_count; $this->_' . $tag_args . '_i++){'; + $tag_template_php .= 'for ($this->_' . $tag_args . '_i = ' . $loop_start . '; $this->_' . $tag_args . '_i < ' . $loop_end . '; $this->_' . $tag_args . '_i++){'; return $tag_template_php; }