Give the installerdbtype object to custom callbacks too :)
authorChad Horohoe <demon@users.mediawiki.org>
Wed, 7 Jul 2010 13:53:27 +0000 (13:53 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Wed, 7 Jul 2010 13:53:27 +0000 (13:53 +0000)
includes/installer/Installer.php

index 9ec3c42..625c2ef 100644 (file)
@@ -873,7 +873,7 @@ abstract class Installer {
                        if ( is_array( $stepObj ) ) {
                                # A custom callaback
                                $callback = $stepObj['callback'];
-                               $status = call_user_func_array( $callback, array() );
+                               $status = call_user_func_array( $callback, array( $installer ) );
                        } else {
                                # Boring implicitly named callback
                                $func = 'install' . ucfirst( $step );