X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiComparePages.php;h=ce256a67b50c6b2a53e8ccc5600201ed37203c7a;hb=68aab7ca8bd2bf7271a2f69aff1e7a60ab88078b;hp=48559268568c64914604b1698d7e53c2f0d88a58;hpb=3c64eb81bdf669a63628ca2fcf37be1241220e9a;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiComparePages.php b/includes/api/ApiComparePages.php index 4855926856..ce256a67b5 100644 --- a/includes/api/ApiComparePages.php +++ b/includes/api/ApiComparePages.php @@ -126,27 +126,10 @@ class ApiComparePages extends ApiBase { ); } - public function getParamDescription() { + protected function getExamplesMessages() { return array( - 'fromtitle' => 'First title to compare', - 'fromid' => 'First page ID to compare', - 'fromrev' => 'First revision to compare', - 'totitle' => 'Second title to compare', - 'toid' => 'Second page ID to compare', - 'torev' => 'Second revision to compare', - ); - } - - public function getDescription() { - return array( - 'Get the difference between 2 pages.', - 'You must pass a revision number or a page title or a page ID id for each part (1 and 2).' - ); - } - - public function getExamples() { - return array( - 'api.php?action=compare&fromrev=1&torev=2' => 'Create a diff between revision 1 and 2', + 'action=compare&fromrev=1&torev=2' + => 'apihelp-compare-example-1', ); } }