r81142 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r81141‎ | r81142 | r81143 >
Date:18:09, 28 January 2011
Author:jeroendedauw
Status:deferred
Tags:
Comment:
negation fix
Modified paths:
  • /trunk/extensions/SubPageList/SubPageList.class.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SubPageList/SubPageList.class.php
@@ -301,7 +301,7 @@
302302 foreach( $titles as $subPageTitle ) {
303303 $level = substr_count( $subPageTitle->getFullText(), '/' ) - $parentLevel;
304304
305 - if ( $parameters['kidsonly'] || $level < 2 ) {
 305+ if ( !$parameters['kidsonly'] || $level < 2 ) {
306306
307307 if ( $parameters['showpage'] ) {
308308 $level++;

Status & tagging log