From: Alexandre Emsenhuber Date: Mon, 28 Jun 2010 17:51:49 +0000 (+0000) Subject: * (bug 24155) Import no longer produces errors with php 5.2 and before X-Git-Tag: 1.31.0-rc.0~36361 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/journal.php?a=commitdiff_plain;h=c7e8669ebc081bb2a15bbb8fc62ee8c60713cfae;p=lhc%2Fweb%2Fwiklou.git * (bug 24155) Import no longer produces errors with php 5.2 and before --- diff --git a/includes/ImportXMLReader.php b/includes/ImportXMLReader.php index 06f21579c2..ebfb12a90b 100644 --- a/includes/ImportXMLReader.php +++ b/includes/ImportXMLReader.php @@ -174,7 +174,8 @@ class WikiImporter { * Mostly for hook use */ public function finishImportPage( $title, $origTitle, $revCount, $sRevCount, $pageInfo ) { - return wfRunHooks( 'AfterImportPage', func_get_args() ); + $args = func_get_args(); + return wfRunHooks( 'AfterImportPage', $args ); } /** @@ -213,7 +214,8 @@ class WikiImporter { */ private function pageOutCallback( $title, $origTitle, $revCount, $sucCount, $pageInfo ) { if( isset( $this->mPageOutCallback ) ) { - call_user_func_array( $this->mPageOutCallback, func_get_args() ); + $args = func_get_args(); + call_user_func_array( $this->mPageOutCallback, $args ); } } diff --git a/includes/specials/SpecialImport.php b/includes/specials/SpecialImport.php index 9abdb30b3c..d562fa47ee 100644 --- a/includes/specials/SpecialImport.php +++ b/includes/specials/SpecialImport.php @@ -304,7 +304,8 @@ class ImportReporter { function reportPage( $title, $origTitle, $revisionCount, $successCount ) { global $wgOut, $wgUser, $wgLang, $wgContLang; - call_user_func_array( $this->mOriginalPageOutCallback, func_get_args() ); + $args = func_get_args(); + call_user_func_array( $this->mOriginalPageOutCallback, $args ); $skin = $wgUser->getSkin();