From 49e79ed3439123fb97e90281fe0d844d7f89d92a Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Tue, 1 Sep 2009 14:09:33 +0000 Subject: [PATCH] (bug 20463) Replace is_a() with instanceof. Installer already bails on PHP4 before we get here, so it's ok. Still one usage of is_a() in t/Test.php, but nothing calls it and I don't care. --- config/Installer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/Installer.php b/config/Installer.php index eebc2f5b2f..4c05c699bd 100644 --- 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 ) { -- 2.20.1