Fix r66267, make hook code consistent with documentation, fix E_NOTICE
authorAndrew Garrett <werdna@users.mediawiki.org>
Tue, 18 Jan 2011 18:33:31 +0000 (18:33 +0000)
committerAndrew Garrett <werdna@users.mediawiki.org>
Tue, 18 Jan 2011 18:33:31 +0000 (18:33 +0000)
includes/ImportXMLReader.php

index 256b369..bd49fc0 100644 (file)
@@ -548,7 +548,7 @@ class WikiImporter {
                        $tag = $this->reader->name;
 
                        if ( !wfRunHooks( 'ImportHandleUploadXMLTag', $this->reader,
-                                               $pageInfo, $revisionInfo ) ) {
+                                               $pageInfo ) ) {
                                // Do nothing
                        } elseif ( in_array( $tag, $normalFields ) ) {
                                $uploadInfo[$tag] = $this->nodeContents();