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 @@
69
69
}
70
70
if ( !$message->exists() ) {
71
71
global $wgLang;
72
- $lang = $this->language === null ? $wgLang : Language::factory( $lang );
72
+ $lang = $this->language === null ? $wgLang : Language::factory( $this->language );
73
73
$row['title'] = $lang->ucfirst( $category );
74
74
} else {
75
75
$row['title'] = $message->plain();
Past revisions this follows-up on
Revision
Commit summary
Author
Date
r95992
RL2: In list=gagetcategories, rename the desc-raw property to title, and kill...
catrope
14:45, 1 September 2011
Status & tagging log
09:47, 11 September 2011
Nikerabbit
(
talk
|
contribs
)
changed the
status
of r96755
[
removed:
new
added:
ok]