r96755 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r96754‎ | r96755 | r96756 >
Date:22:49, 10 September 2011
Author:krinkle
Status:ok
Tags:
Comment:
Fix E_NOTICE about undefined variable.
* $lang was probably defined earlier, before the code was rearranged.

Follows-up r95992
Modified paths:
  • /branches/RL2/extensions/Gadgets/api/ApiQueryGadgetCategories.php (modified) (history)

Diff [purge]

Index: branches/RL2/extensions/Gadgets/api/ApiQueryGadgetCategories.php
@@ -68,7 +68,7 @@
6969 }
7070 if ( !$message->exists() ) {
7171 global $wgLang;
72 - $lang = $this->language === null ? $wgLang : Language::factory( $lang );
 72+ $lang = $this->language === null ? $wgLang : Language::factory( $this->language );
7373 $row['title'] = $lang->ucfirst( $category );
7474 } else {
7575 $row['title'] = $message->plain();

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r95992RL2: In list=gagetcategories, rename the desc-raw property to title, and kill...catrope14:45, 1 September 2011

Status & tagging log