aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorChris Smith <toonarmy@phpbb.com>2008-11-23 16:07:36 +0000
committerChris Smith <toonarmy@phpbb.com>2008-11-23 16:07:36 +0000
commit3f11fc12ac8bc81dad08326e8d1cc445fbbe6855 (patch)
tree2049a3e7cc1a9213b4eb9acc660cf4b1e8333f24 /phpBB
parentaa3a2f565b81e2571f04be156c57aaf3074a1738 (diff)
downloadforums-3f11fc12ac8bc81dad08326e8d1cc445fbbe6855.tar
forums-3f11fc12ac8bc81dad08326e8d1cc445fbbe6855.tar.gz
forums-3f11fc12ac8bc81dad08326e8d1cc445fbbe6855.tar.bz2
forums-3f11fc12ac8bc81dad08326e8d1cc445fbbe6855.tar.xz
forums-3f11fc12ac8bc81dad08326e8d1cc445fbbe6855.zip
S_NUM_ROWS gives you the number of rows in a block
git-svn-id: file:///svn/phpbb/trunk@9098 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/includes/functions_template.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/phpBB/includes/functions_template.php b/phpBB/includes/functions_template.php
index da11ff6e89..920b235cb3 100644
--- a/phpBB/includes/functions_template.php
+++ b/phpBB/includes/functions_template.php
@@ -427,6 +427,10 @@ class template_filter extends php_user_filter
$token = "\$_${namespace}_i";
break;
+ case 'S_NUM_ROWS':
+ $token = "\$_${namespace}_count";
+ break;
+
case 'S_FIRST_ROW':
$token = "(\$_${namespace}_i == 0)";
break;
@@ -618,6 +622,10 @@ class template_filter extends php_user_filter
$varref = "\$_${namespace}_i";
break;
+ case 'S_NUM_ROWS':
+ $varref = "\$_${namespace}_count";
+ break;
+
case 'S_FIRST_ROW':
$varref = "(\$_${namespace}_i == 0)";
break;