r76531 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r76530‎ | r76531 | r76532 >
Date:18:53, 11 November 2010
Author:nad
Status:ok
Tags:
Comment:
split() deprecated, change to explode()
Modified paths:
  • /trunk/extensions/DynamicPageList/DPLMain.php (modified) (history)

Diff [purge]

Index: trunk/extensions/DynamicPageList/DPLMain.php
@@ -3377,13 +3377,13 @@
33783378 foreach ( $aSecLabels as $label ) {
33793379 $t++;
33803380 $groupNr++;
3381 - $cols = split( '}:', $label );
 3381+ $cols = explode( '}:', $label );
33823382 if ( count( $cols ) <= 1 ) {
33833383 if ( array_key_exists( $t, $tableRow ) ) {
33843384 $aTableRow[$groupNr] = $tableRow[$t];
33853385 }
33863386 } else {
3387 - $n = count( split( ':', $cols[1] ) );
 3387+ $n = count( explode( ':', $cols[1] ) );
33883388 $colNr = - 1;
33893389 $t--;
33903390 for ( $i = 1; $i <= $n; $i++ ) {

Status & tagging log