From 55e8388137a826a7e7e5d259a95bc0a984eb35c2 Mon Sep 17 00:00:00 2001 From: Platonides Date: Tue, 26 Feb 2013 21:52:23 +0100 Subject: [PATCH] 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 --- maintenance/update.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.20.1