dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae24133
)
(bug 20463) Replace is_a() with instanceof. Installer already bails on PHP4 before...
author
Chad Horohoe
<demon@users.mediawiki.org>
Tue, 1 Sep 2009 14:09:33 +0000
(14:09 +0000)
committer
Chad Horohoe
<demon@users.mediawiki.org>
Tue, 1 Sep 2009 14:09:33 +0000
(14:09 +0000)
config/Installer.php
patch
|
blob
|
history
diff --git
a/config/Installer.php
b/config/Installer.php
index
eebc2f5
..
4c05c69
100644
(file)
--- a/
config/Installer.php
+++ b/
config/Installer.php
@@
-709,7
+709,7
@@
$wgAuth = new AuthPlugin();
if( $conf->SysopName ) {
# Check that the user can be created
$u = User::newFromName( $conf->SysopName );
- if(
is_a($u, 'User') ) { // please do not use instanceof, it breaks PHP4
+ if(
$u instanceof User ) {
# Various password checks
if( $conf->SysopPass != '' ) {
if( $conf->SysopPass == $conf->SysopPass2 ) {