* 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 );
}
/**
*/
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 );
}
}
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();