Followup r108768, callign the right callback helps too
authorSam Reed <reedy@users.mediawiki.org>
Thu, 12 Jan 2012 22:35:48 +0000 (22:35 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Thu, 12 Jan 2012 22:35:48 +0000 (22:35 +0000)
includes/db/Database.php

index 2b0aef2..c51a0c1 100644 (file)
@@ -3185,7 +3185,7 @@ abstract class DatabaseBase implements DatabaseType {
                        if ( $done || feof( $fp ) ) {
                                $cmd = $this->replaceVars( $cmd );
                                if ( $inputCallback ) {
-                                       call_user_func( $resultCallback, $cmd );
+                                       call_user_func( $inputCallback, $cmd );
                                }
                                $res = $this->query( $cmd, $fname );