(bug 20463) Replace is_a() with instanceof. Installer already bails on PHP4 before...
authorChad Horohoe <demon@users.mediawiki.org>
Tue, 1 Sep 2009 14:09:33 +0000 (14:09 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Tue, 1 Sep 2009 14:09:33 +0000 (14:09 +0000)
config/Installer.php

index eebc2f5..4c05c69 100644 (file)
@@ -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 ) {