dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Cruft war continues: more uses of isAnon() and isLoggedIn()
[lhc/web/wiklou.git]
/
includes
/
SpecialPreferences.php
diff --git
a/includes/SpecialPreferences.php
b/includes/SpecialPreferences.php
index
e2c16f6
..
bfbe8f4
100644
(file)
--- a/
includes/SpecialPreferences.php
+++ b/
includes/SpecialPreferences.php
@@
-103,7
+103,7
@@
class PreferencesForm {
function execute() {
global $wgUser, $wgOut, $wgUseDynamicDates;
- if (
0 == $wgUser->getID
() ) {
+ if (
$wgUser->isAnon
() ) {
$wgOut->errorpage( 'prefsnologin', 'prefsnologintext' );
return;
}