From: Siebrand Mazeland Date: Tue, 8 Mar 2016 07:33:38 +0000 (+0100) Subject: Explicitly declare ImportReporter::reportPage() and override public X-Git-Tag: 1.31.0-rc.0~7712^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/ajouter.php?a=commitdiff_plain;h=ff6ad7854625ebcd96bc1936b4a223ac95707c60;p=lhc%2Fweb%2Fwiklou.git Explicitly declare ImportReporter::reportPage() and override public Used as such in SpecialImport.php. Change-Id: Ia8cb1f4b95f43a50ff7ddd9aa4cb3ffc90f916c8 --- diff --git a/includes/api/ApiImport.php b/includes/api/ApiImport.php index 8574dceb4f..c5a8a7161d 100644 --- a/includes/api/ApiImport.php +++ b/includes/api/ApiImport.php @@ -175,7 +175,7 @@ class ApiImportReporter extends ImportReporter { * @param array $pageInfo * @return void */ - function reportPage( $title, $origTitle, $revisionCount, $successCount, $pageInfo ) { + public function reportPage( $title, $origTitle, $revisionCount, $successCount, $pageInfo ) { // Add a result entry $r = []; diff --git a/includes/specials/SpecialImport.php b/includes/specials/SpecialImport.php index 72f8cca28f..fe1dd985d7 100644 --- a/includes/specials/SpecialImport.php +++ b/includes/specials/SpecialImport.php @@ -581,7 +581,7 @@ class ImportReporter extends ContextSource { * @param array $pageInfo * @return void */ - function reportPage( $title, $foreignTitle, $revisionCount, + public function reportPage( $title, $foreignTitle, $revisionCount, $successCount, $pageInfo ) { $args = func_get_args(); call_user_func_array( $this->mOriginalPageOutCallback, $args );