From: Platonides Date: Tue, 26 Feb 2013 20:52:23 +0000 (+0100) Subject: Make maintenance/update.php parse again under PHP 4.1.0 X-Git-Tag: 1.31.0-rc.0~20328^2~1 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22config_fonctions%22%2C%20%22image_process=%24process%22%29%20.%20%22?a=commitdiff_plain;h=55e8388137a826a7e7e5d259a95bc0a984eb35c2;p=lhc%2Fweb%2Fwiklou.git Make maintenance/update.php parse again under PHP 4.1.0 The instanceof produces a parse error on old PHP versions, which doesn't show the old-version error message. Note that our is minimum PHP version is 5.3.2, so it won't produce E_STRICTs (is_a() was undeprecated in 5.3.0) Change-Id: I5904301759bd154dd87ed90a5176369e37346482 --- diff --git a/maintenance/update.php b/maintenance/update.php index ba1d8cdc62..159b6b774a 100644 --- a/maintenance/update.php +++ b/maintenance/update.php @@ -154,7 +154,7 @@ class UpdateMediaWiki extends Maintenance { $child = $this->runChild( $maint ); // LoggedUpdateMaintenance is checking the updatelog itself - $isLoggedUpdate = ( $child instanceof LoggedUpdateMaintenance ); + $isLoggedUpdate = is_a( $child, 'LoggedUpdateMaintenance' ); if ( !$isLoggedUpdate && $updater->updateRowExists( $maint ) ) { continue;