https://bugzilla.wikimedia.org/show_bug.cgi?id=25580

--- Comment #5 from Dmitriy <c...@uniyar.ac.ru> 2010-10-25 05:26:47 UTC ---
Roan, after a brief observation, the first bug seems to be very simple:

includes/specials/SpecialImport.php

    function reportPage( $title, $origTitle, $revisionCount, $successCount ) {
        global $wgOut, $wgUser, $wgLang, $wgContLang;

        $args = func_get_args();
        call_user_func_array( $this->mOriginalPageOutCallback, $args );

There is a call_user_func_array with $args, where $args is a four reportPage
arguments, while the callback has been modified to include 5th parameter:

includes/ImportXMLReader.php

    /**
     * Mostly for hook use
     */
    public function finishImportPage( $title, $origTitle, $revCount,
$sRevCount, $pageInfo ) {
        $args = func_get_args();
        return wfRunHooks( 'AfterImportPage', $args );
    }

which expects five parameters. Thus, the warning is produced. Either, the 5th
parameter should be added to SpecialImport's reportPage; or the default value
for finishImportPage should be provided.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to