r102415 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r102414‎ | r102415 | r102416 >
Date:17:20, 8 November 2011
Author:catrope
Status:ok
Tags:
Comment:
Cast the return value of getExtraUserToggles() to an array in case it's not in the dataCache
Modified paths:
  • /trunk/phase3/languages/Language.php (modified) (history)

Diff [purge]

Index: trunk/phase3/languages/Language.php
@@ -625,7 +625,7 @@
626626 * @return array
627627 */
628628 function getExtraUserToggles() {
629 - return self::$dataCache->getItem( $this->mCode, 'extraUserToggles' );
 629+ return (array)self::$dataCache->getItem( $this->mCode, 'extraUserToggles' );
630630 }
631631
632632 /**

Status & tagging log