From c7e8669ebc081bb2a15bbb8fc62ee8c60713cfae Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Mon, 28 Jun 2010 17:51:49 +0000 Subject: [PATCH] * (bug 24155) Import no longer produces errors with php 5.2 and before --- includes/ImportXMLReader.php | 6 ++++-- includes/specials/SpecialImport.php | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) 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(); -- 2.20.1