Platonides has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/51021


Change subject: Make maintenance/update.php parse again under PHP 4.1.0
......................................................................

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
---
M maintenance/update.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/21/51021/1

diff --git a/maintenance/update.php b/maintenance/update.php
index ba1d8cd..159b6b7 100644
--- a/maintenance/update.php
+++ b/maintenance/update.php
@@ -154,7 +154,7 @@
                        $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;

-- 
To view, visit https://gerrit.wikimedia.org/r/51021
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I5904301759bd154dd87ed90a5176369e37346482
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Platonides <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to