r68285 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r68284‎ | r68285 | r68286 >
Date:20:13, 19 June 2010
Author:nikerabbit
Status:ok
Tags:
Comment:
Special page inclusion syntax doesn't allow | characters, so allow replacing it with space
Modified paths:
  • /trunk/extensions/Translate/SpecialTranslationStats.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/SpecialTranslationStats.php
@@ -41,6 +41,10 @@
4242 foreach ( array( 'group', 'language' ) as $t ) {
4343 $values = array_map( 'trim', explode( ',', $opts[$t] ) );
4444 $values = array_splice( $values, 0, 4 );
 45+ if ( $t === 'group' ) {
 46+ $values = preg_replace( '~^page_~', 'page|', $values );
 47+ }
 48+ //var_dump( implode( ',', $values ) );
4549 $opts[$t] = implode( ',', $values );
4650 }
4751

Status & tagging log