r21750 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r21749‎ | r21750 | r21751 >
Date:12:14, 1 May 2007
Author:daniel
Status:old
Tags:
Comment:
fixed off-by-one error in CategoryTreeFunctions (oops)
Modified paths:
  • /trunk/extensions/CategoryTree/CategoryTreeFunctions.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CategoryTree/CategoryTreeFunctions.php
@@ -140,7 +140,7 @@
141141 }
142142 else {
143143 if ( !$hideroot ) $html .= CategoryTree::renderNode( $title, $mode, $depth>0, $wgCategoryTreeDynamicTag, $depth-1 );
144 - else if ( !$wgCategoryTreeDynamicTag ) $html .= $this->renderChildren( $title, $mode, $depth );
 144+ else if ( !$wgCategoryTreeDynamicTag ) $html .= $this->renderChildren( $title, $mode, $depth-1 );
145145 else { //FIXME: depth would need to be propagated here. this would imact the cache key, too
146146 $uniq += 1;
147147 $load = 'ct-' . $uniq . '-' . mt_rand( 1, 100000 );