r64365 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r64364‎ | r64365 | r64366 >
Date:22:24, 29 March 2010
Author:conrad
Status:deferred
Tags:
Comment:
Fix "call-time pass-by-reference has been deprecated"
Modified paths:
  • /trunk/extensions/Transliterator/Transliterator_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Transliterator/Transliterator_body.php
@@ -276,13 +276,13 @@
277277 $from = self::forTransliteration( $from, $flags | self::IGNORE_ENDINGS );
278278
279279 if ( !$noprefix ) {
280 - $from = preg_replace( '/^[\^][' . self::LETTER_END . '][' . self::WORD_START . ']/u', '', $from, 1, &$count );
 280+ $from = preg_replace( '/^[\^][' . self::LETTER_END . '][' . self::WORD_START . ']/u', '', $from, 1, $count );
281281 if ( $count ) {
282282 $prefix = self::WORD_START;
283283 }
284284 }
285285 if ( !$nosuffix ) {
286 - $from = preg_replace( '/[' . self::WORD_END . '][$][' . self::LETTER_END . ']$/u', '', $from, 1, &$count );
 286+ $from = preg_replace( '/[' . self::WORD_END . '][$][' . self::LETTER_END . ']$/u', '', $from, 1, $count );
287287 if ( $count ) {
288288 $suffix = self::WORD_END;
289289 }

Status & tagging log