r52741 MediaWiki - Code Review archive
Repository:
MediaWiki
Revision:
<
r52740
|
r52741
|
r52742
>
Date:
14:03, 3 July 2009
Author:
werdna
Status:
ok
Tags:
Comment:
Move addition of prefs.js down, to avoid errors when you can't view the form as in
bug 19307
Modified paths:
/trunk/phase3/includes/specials/SpecialPreferences.php
(modified) (
history
)
Diff
[
purge
]
Index: trunk/phase3/includes/specials/SpecialPreferences.php
—
—
@@ -10,9 +10,6 @@
11
11
12
12
$this->setHeaders();
13
13
$this->outputHeader();
14
-
15
- $wgOut->addScriptFile( 'prefs.js' );
16
-
17
14
$wgOut->disallowUserJs(); # Prevent hijacked user scripts from sniffing passwords etc.
18
15
19
16
if ( $wgUser->isAnon() ) {
—
—
@@ -28,6 +25,8 @@
29
26
$this->showResetForm();
30
27
return;
31
28
}
29
+
30
+ $wgOut->addScriptFile( 'prefs.js' );
32
31
33
32
if ( $wgRequest->getCheck( 'success' ) ) {
34
33
$wgOut->wrapWikiMsg(
Status & tagging log
21:12, 22 August 2009
Brion VIBBER
(
talk
|
contribs
)
changed the
status
of r52741
[
removed:
new
added:
ok]