r104283 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r104282‎ | r104283 | r104284 >
Date:17:24, 26 November 2011
Author:reedy
Status:deferred
Tags:
Comment:
Fixed a call of $this-> to self:: in a static method

Fixed usage of undefined variable

Made the method return something like it's supposed to
Modified paths:
  • /trunk/extensions/Arrays/Arrays.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Arrays/Arrays.php
@@ -1109,8 +1109,7 @@
11101110 * @return array
11111111 */
11121112 public static function arrayUnique( array $array ) {
1113 - $arr = $this->sanitizeArray( $arr );
1114 - $array = self::array_unique( $array );
 1113+ return self::array_unique( self::sanitizeArray( $array ) );
11151114 }
11161115
11171116 /**

Status & tagging log