r102586 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r102585‎ | r102586 | r102587 >
Date:22:35, 9 November 2011
Author:aaron
Status:ok
Tags:
Comment:
Fixed misleading getItem() comments...things like arrays or FileDependency objects and what not can be returned
Modified paths:
  • /trunk/phase3/includes/LocalisationCache.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/LocalisationCache.php
@@ -215,7 +215,7 @@
216216 * need to fetch all of the subitems from the cache individually.
217217 * @param $code
218218 * @param $key
219 - * @return string
 219+ * @return mixed
220220 */
221221 public function getItem( $code, $key ) {
222222 if ( !isset( $this->loadedItems[$code][$key] ) ) {
@@ -1137,7 +1137,7 @@
11381138 /**
11391139 * @param $code
11401140 * @param $key
1141 - * @return string
 1141+ * @return mixed
11421142 */
11431143 public function getItem( $code, $key ) {
11441144 unset( $this->mruLangs[$code] );

Status & tagging log