Index: trunk/phase3/includes/ImportXMLReader.php |
— | — | @@ -174,7 +174,8 @@ |
175 | 175 | * Mostly for hook use |
176 | 176 | */ |
177 | 177 | public function finishImportPage( $title, $origTitle, $revCount, $sRevCount, $pageInfo ) { |
178 | | - return wfRunHooks( 'AfterImportPage', func_get_args() ); |
| 178 | + $args = func_get_args(); |
| 179 | + return wfRunHooks( 'AfterImportPage', $args ); |
179 | 180 | } |
180 | 181 | |
181 | 182 | /** |
— | — | @@ -213,7 +214,8 @@ |
214 | 215 | */ |
215 | 216 | private function pageOutCallback( $title, $origTitle, $revCount, $sucCount, $pageInfo ) { |
216 | 217 | if( isset( $this->mPageOutCallback ) ) { |
217 | | - call_user_func_array( $this->mPageOutCallback, func_get_args() ); |
| 218 | + $args = func_get_args(); |
| 219 | + call_user_func_array( $this->mPageOutCallback, $args ); |
218 | 220 | } |
219 | 221 | } |
220 | 222 | |
Index: trunk/phase3/includes/specials/SpecialImport.php |
— | — | @@ -304,7 +304,8 @@ |
305 | 305 | function reportPage( $title, $origTitle, $revisionCount, $successCount ) { |
306 | 306 | global $wgOut, $wgUser, $wgLang, $wgContLang; |
307 | 307 | |
308 | | - call_user_func_array( $this->mOriginalPageOutCallback, func_get_args() ); |
| 308 | + $args = func_get_args(); |
| 309 | + call_user_func_array( $this->mOriginalPageOutCallback, $args ); |
309 | 310 | |
310 | 311 | $skin = $wgUser->getSkin(); |
311 | 312 | |