Some extensions like to pass an array for the callback, and method_exists() doesn...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 22 Aug 2010 12:02:36 +0000 (12:02 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 22 Aug 2010 12:02:36 +0000 (12:02 +0000)
includes/installer/DatabaseUpdater.php

index dae896a..ccf008b 100644 (file)
@@ -58,7 +58,7 @@ abstract class DatabaseUpdater {
                        $this->getOldGlobalUpdates() );
                foreach ( $this->updates as $params ) {
                        $func = array_shift( $params );
-                       if( method_exists( $this, $func ) ) {
+                       if( !is_array( $func ) && method_exists( $this, $func ) ) {
                                $func = array( $this, $func );
                        }
                        call_user_func_array( $func, $params );