diff --git a/RELEASE-NOTES-1.21 b/RELEASE-NOTES-1.21 index cfa979a66e5..0ce0593c9ab 100644 --- a/RELEASE-NOTES-1.21 +++ b/RELEASE-NOTES-1.21 @@ -178,6 +178,7 @@ production. * BREAKING CHANGE: '??_badcontinue' error code was changed to '??badcontinue' for all query modules. * ApiQueryBase adds 'badcontinue' error code if module has 'continue' parameter. +* (bug 35885) Removed version parameter and all getVersion() methods. === Languages updated in 1.21 === diff --git a/includes/api/ApiBase.php b/includes/api/ApiBase.php index dd685f4c0fb..4efa7e6afe6 100644 --- a/includes/api/ApiBase.php +++ b/includes/api/ApiBase.php @@ -112,8 +112,12 @@ abstract class ApiBase extends ContextSource { * Typically includes the class name, the svn revision, timestamp, and * last author. Usually done with SVN's Id keyword * @return string + * @deprecated since 1.21, version string is no longer supported */ - public abstract function getVersion(); + public function getVersion() { + wfDeprecated( __METHOD__, '1.21' ); + return ''; + } /** * Get the name of the module being executed by this instance @@ -299,23 +303,6 @@ abstract class ApiBase extends ContextSource { } $msg .= $this->makeHelpArrayToString( $lnPrfx, "Help page", $this->getHelpUrls() ); - - if ( $this->getMain()->getShowVersions() ) { - $versions = $this->getVersion(); - $pattern = '/(\$.*) ([0-9a-z_]+\.php) (.*\$)/i'; - $callback = array( $this, 'makeHelpMsg_callback' ); - - if ( is_array( $versions ) ) { - foreach ( $versions as &$v ) { - $v = preg_replace_callback( $pattern, $callback, $v ); - } - $versions = implode( "\n ", $versions ); - } else { - $versions = preg_replace_callback( $pattern, $callback, $versions ); - } - - $msg .= "Version:\n $versions\n"; - } } return $msg; @@ -488,44 +475,6 @@ abstract class ApiBase extends ContextSource { } } - /** - * Callback for preg_replace_callback() call in makeHelpMsg(). - * Replaces a source file name with a link to ViewVC - * - * @param $matches array - * @return string - */ - public function makeHelpMsg_callback( $matches ) { - global $wgAutoloadClasses, $wgAutoloadLocalClasses; - - $file = ''; - if ( isset( $wgAutoloadLocalClasses[get_class( $this )] ) ) { - $file = $wgAutoloadLocalClasses[get_class( $this )]; - } elseif ( isset( $wgAutoloadClasses[get_class( $this )] ) ) { - $file = $wgAutoloadClasses[get_class( $this )]; - } - - // Do some guesswork here - $path = strstr( $file, 'includes/api/' ); - if ( $path === false ) { - $path = strstr( $file, 'extensions/' ); - } else { - $path = 'phase3/' . $path; - } - - // Get the filename from $matches[2] instead of $file - // If they're not the same file, they're assumed to be in the - // same directory - // This is necessary to make stuff like ApiMain::getVersion() - // returning the version string for ApiBase work - if ( $path ) { - return "{$matches[0]}\n https://svn.wikimedia.org/" . - "viewvc/mediawiki/trunk/" . dirname( $path ) . - "/{$matches[2]}"; - } - return $matches[0]; - } - /** * Returns the description string for this module * @return mixed string or array of strings @@ -1691,12 +1640,4 @@ abstract class ApiBase extends ContextSource { } print "\n\n"; } - - /** - * Returns a string that identifies the version of this class. - * @return string - */ - public static function getBaseVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiBlock.php b/includes/api/ApiBlock.php index 4779067407d..b58be11599d 100644 --- a/includes/api/ApiBlock.php +++ b/includes/api/ApiBlock.php @@ -265,8 +265,4 @@ class ApiBlock extends ApiBase { public function getHelpUrls() { return 'https://www.mediawiki.org/wiki/API:Block'; } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiComparePages.php b/includes/api/ApiComparePages.php index 67412598a86..230ed339799 100644 --- a/includes/api/ApiComparePages.php +++ b/includes/api/ApiComparePages.php @@ -172,8 +172,4 @@ class ApiComparePages extends ApiBase { 'api.php?action=compare&fromrev=1&torev=2' => 'Create a diff between revision 1 and 2', ); } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiCreateAccount.php b/includes/api/ApiCreateAccount.php index 628f48ec19a..0209fb12378 100644 --- a/includes/api/ApiCreateAccount.php +++ b/includes/api/ApiCreateAccount.php @@ -258,8 +258,4 @@ class ApiCreateAccount extends ApiBase { public function getHelpUrls() { return 'https://www.mediawiki.org/wiki/API:Account creation'; } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiDelete.php b/includes/api/ApiDelete.php index 964e0ae40b3..cfa80352f98 100644 --- a/includes/api/ApiDelete.php +++ b/includes/api/ApiDelete.php @@ -267,8 +267,4 @@ class ApiDelete extends ApiBase { public function getHelpUrls() { return 'https://www.mediawiki.org/wiki/API:Delete'; } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiDisabled.php b/includes/api/ApiDisabled.php index 13975aec01e..ebcfa011a43 100644 --- a/includes/api/ApiDisabled.php +++ b/includes/api/ApiDisabled.php @@ -63,8 +63,4 @@ class ApiDisabled extends ApiBase { public function getExamples() { return array(); } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiEditPage.php b/includes/api/ApiEditPage.php index b1066ccb0a3..74d3e14d82f 100644 --- a/includes/api/ApiEditPage.php +++ b/includes/api/ApiEditPage.php @@ -649,8 +649,4 @@ class ApiEditPage extends ApiBase { public function getHelpUrls() { return 'https://www.mediawiki.org/wiki/API:Edit'; } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiEmailUser.php b/includes/api/ApiEmailUser.php index 4fa034341c2..ba8edc08b9e 100644 --- a/includes/api/ApiEmailUser.php +++ b/includes/api/ApiEmailUser.php @@ -160,8 +160,4 @@ class ApiEmailUser extends ApiBase { public function getHelpUrls() { return 'https://www.mediawiki.org/wiki/API:E-mail'; } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiExpandTemplates.php b/includes/api/ApiExpandTemplates.php index 160f5b913ac..f740cf8ac54 100644 --- a/includes/api/ApiExpandTemplates.php +++ b/includes/api/ApiExpandTemplates.php @@ -130,8 +130,4 @@ class ApiExpandTemplates extends ApiBase { public function getHelpUrls() { return 'https://www.mediawiki.org/wiki/API:Parsing_wikitext#expandtemplates'; } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiFeedContributions.php b/includes/api/ApiFeedContributions.php index 15a377c144a..2f02674fe3c 100644 --- a/includes/api/ApiFeedContributions.php +++ b/includes/api/ApiFeedContributions.php @@ -213,8 +213,4 @@ class ApiFeedContributions extends ApiBase { 'api.php?action=feedcontributions&user=Reedy', ); } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiFeedWatchlist.php b/includes/api/ApiFeedWatchlist.php index 373abdb99bf..7a91641a777 100644 --- a/includes/api/ApiFeedWatchlist.php +++ b/includes/api/ApiFeedWatchlist.php @@ -233,8 +233,4 @@ class ApiFeedWatchlist extends ApiBase { public function getHelpUrls() { return 'https://www.mediawiki.org/wiki/API:Watchlist_feed'; } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiFileRevert.php b/includes/api/ApiFileRevert.php index 092b0036f26..1e463e5e123 100644 --- a/includes/api/ApiFileRevert.php +++ b/includes/api/ApiFileRevert.php @@ -195,8 +195,4 @@ class ApiFileRevert extends ApiBase { => 'Revert Wiki.png to the version of 20110305152740', ); } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiFormatBase.php b/includes/api/ApiFormatBase.php index 8ad9b8ca35e..e8edb3d7e00 100644 --- a/includes/api/ApiFormatBase.php +++ b/includes/api/ApiFormatBase.php @@ -308,10 +308,6 @@ See the complete documentation, public function getDescription() { return $this->getIsHtml() ? ' (pretty-print in HTML)' : ''; } - - public static function getBaseVersion() { - return __CLASS__ . ': $Id$'; - } } /** @@ -381,8 +377,4 @@ class ApiFormatFeedWrapper extends ApiFormatBase { ApiBase::dieDebug( __METHOD__, 'Invalid feed class/item' ); } } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiFormatDbg.php b/includes/api/ApiFormatDbg.php index 3d2a39ca56f..f280a290099 100644 --- a/includes/api/ApiFormatDbg.php +++ b/includes/api/ApiFormatDbg.php @@ -48,8 +48,4 @@ class ApiFormatDbg extends ApiFormatBase { public function getDescription() { return 'Output data in PHP\'s var_export() format' . parent::getDescription(); } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiFormatDump.php b/includes/api/ApiFormatDump.php index 0f055e130c3..db6608374eb 100644 --- a/includes/api/ApiFormatDump.php +++ b/includes/api/ApiFormatDump.php @@ -52,8 +52,4 @@ class ApiFormatDump extends ApiFormatBase { public function getDescription() { return 'Output data in PHP\'s var_dump() format' . parent::getDescription(); } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiFormatJson.php b/includes/api/ApiFormatJson.php index acbc7d3bc25..19c5e5f0854 100644 --- a/includes/api/ApiFormatJson.php +++ b/includes/api/ApiFormatJson.php @@ -90,8 +90,4 @@ class ApiFormatJson extends ApiFormatBase { return 'Output data in JSON format' . parent::getDescription(); } } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiFormatNone.php b/includes/api/ApiFormatNone.php index b3bde378516..bee1ac964b1 100644 --- a/includes/api/ApiFormatNone.php +++ b/includes/api/ApiFormatNone.php @@ -44,8 +44,4 @@ class ApiFormatNone extends ApiFormatBase { public function getDescription() { return 'Output nothing' . parent::getDescription(); } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiFormatPhp.php b/includes/api/ApiFormatPhp.php index fac2ca587d3..99a047a55bc 100644 --- a/includes/api/ApiFormatPhp.php +++ b/includes/api/ApiFormatPhp.php @@ -45,8 +45,4 @@ class ApiFormatPhp extends ApiFormatBase { public function getDescription() { return 'Output data in serialized PHP format' . parent::getDescription(); } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiFormatRaw.php b/includes/api/ApiFormatRaw.php index 184f0a34cc7..d278efa0bcc 100644 --- a/includes/api/ApiFormatRaw.php +++ b/includes/api/ApiFormatRaw.php @@ -66,8 +66,4 @@ class ApiFormatRaw extends ApiFormatBase { } $this->printText( $data['text'] ); } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiFormatTxt.php b/includes/api/ApiFormatTxt.php index 71414593feb..3e1f59235be 100644 --- a/includes/api/ApiFormatTxt.php +++ b/includes/api/ApiFormatTxt.php @@ -48,8 +48,4 @@ class ApiFormatTxt extends ApiFormatBase { public function getDescription() { return 'Output data in PHP\'s print_r() format' . parent::getDescription(); } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiFormatWddx.php b/includes/api/ApiFormatWddx.php index 65056e44af3..fd1b32765d2 100644 --- a/includes/api/ApiFormatWddx.php +++ b/includes/api/ApiFormatWddx.php @@ -112,8 +112,4 @@ class ApiFormatWddx extends ApiFormatBase { public function getDescription() { return 'Output data in WDDX format' . parent::getDescription(); } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiFormatXml.php b/includes/api/ApiFormatXml.php index 5ccf1859a08..582e4054722 100644 --- a/includes/api/ApiFormatXml.php +++ b/includes/api/ApiFormatXml.php @@ -248,8 +248,4 @@ class ApiFormatXml extends ApiFormatBase { public function getDescription() { return 'Output data in XML format' . parent::getDescription(); } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiFormatYaml.php b/includes/api/ApiFormatYaml.php index 9a8e3bcefb1..700d4a5e9dc 100644 --- a/includes/api/ApiFormatYaml.php +++ b/includes/api/ApiFormatYaml.php @@ -37,8 +37,4 @@ class ApiFormatYaml extends ApiFormatJson { public function getDescription() { return 'Output data in YAML format' . ApiFormatBase::getDescription(); } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiHelp.php b/includes/api/ApiHelp.php index 2b5de21af77..28bb2e94e11 100644 --- a/includes/api/ApiHelp.php +++ b/includes/api/ApiHelp.php @@ -151,8 +151,4 @@ class ApiHelp extends ApiBase { 'https://www.mediawiki.org/wiki/API:Quick_start_guide', ); } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiImport.php b/includes/api/ApiImport.php index 637c1fff7f0..f5636bd2361 100644 --- a/includes/api/ApiImport.php +++ b/includes/api/ApiImport.php @@ -186,10 +186,6 @@ class ApiImport extends ApiBase { public function getHelpUrls() { return 'https://www.mediawiki.org/wiki/API:Import'; } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } /** diff --git a/includes/api/ApiLogin.php b/includes/api/ApiLogin.php index 1f91fe92ae5..3df952fa9f6 100644 --- a/includes/api/ApiLogin.php +++ b/includes/api/ApiLogin.php @@ -278,8 +278,4 @@ class ApiLogin extends ApiBase { public function getHelpUrls() { return 'https://www.mediawiki.org/wiki/API:Login'; } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiLogout.php b/includes/api/ApiLogout.php index b2f634d0477..00dd62563e8 100644 --- a/includes/api/ApiLogout.php +++ b/includes/api/ApiLogout.php @@ -75,8 +75,4 @@ class ApiLogout extends ApiBase { public function getHelpUrls() { return 'https://www.mediawiki.org/wiki/API:Logout'; } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiMain.php b/includes/api/ApiMain.php index 57ccc7a81b4..9f88cd6d7f4 100644 --- a/includes/api/ApiMain.php +++ b/includes/api/ApiMain.php @@ -132,7 +132,7 @@ class ApiMain extends ApiBase { private $mPrinter; private $mModules, $mModuleNames, $mFormats, $mFormatNames; - private $mResult, $mAction, $mShowVersions, $mEnableWrite; + private $mResult, $mAction, $mEnableWrite; private $mInternalMode, $mSquidMaxage, $mModule; private $mCacheMode = 'private'; @@ -188,7 +188,6 @@ class ApiMain extends ApiBase { $this->mFormatNames = array_keys( $this->mFormats ); $this->mResult = new ApiResult( $this ); - $this->mShowVersions = false; $this->mEnableWrite = $enableWrite; $this->mSquidMaxage = - 1; // flag for executeActionWithErrorHandling() @@ -681,7 +680,6 @@ class ApiMain extends ApiBase { $params = $this->extractRequestParams(); - $this->mShowVersions = $params['version']; $this->mAction = $params['action']; if ( !is_string( $this->mAction ) ) { @@ -968,7 +966,6 @@ class ApiMain extends ApiBase { ApiBase::PARAM_DFLT => 'help', ApiBase::PARAM_TYPE => $this->mModuleNames ), - 'version' => false, 'maxlag' => array( ApiBase::PARAM_TYPE => 'integer' ), @@ -995,7 +992,6 @@ class ApiMain extends ApiBase { return array( 'format' => 'The format of the output', 'action' => 'What action you would like to perform. See below for module help', - 'version' => 'When showing help, include version for each module', 'maxlag' => array( 'Maximum lag can be used when MediaWiki is installed on a database replicated cluster.', 'To save actions causing any more site replication lag, this parameter can make the client', @@ -1111,8 +1107,7 @@ class ApiMain extends ApiBase { $this->setHelp(); // Get help text from cache if present $key = wfMemcKey( 'apihelp', $this->getModuleName(), - SpecialVersion::getVersion( 'nodb' ) . - $this->getShowVersions() ); + SpecialVersion::getVersion( 'nodb' ) ); if ( $wgAPICacheHelpTimeout > 0 ) { $cached = $wgMemc->get( $key ); if ( $cached ) { @@ -1202,25 +1197,11 @@ class ApiMain extends ApiBase { /** * Check whether the user wants us to show version information in the API help * @return bool + * @deprecated since 1.21, always returns false */ public function getShowVersions() { - return $this->mShowVersions; - } - - /** - * Returns the version information of this file, plus it includes - * the versions for all files that are not callable proper API modules - * - * @return array - */ - public function getVersion() { - $vers = array(); - $vers[] = 'MediaWiki: ' . SpecialVersion::getVersion() . "\n https://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/"; - $vers[] = __CLASS__ . ': $Id$'; - $vers[] = ApiBase::getBaseVersion(); - $vers[] = ApiFormatBase::getBaseVersion(); - $vers[] = ApiQueryBase::getBaseVersion(); - return $vers; + wfDeprecated( __METHOD__, '1.21' ); + return false; } /** diff --git a/includes/api/ApiMove.php b/includes/api/ApiMove.php index 9b70b56de3b..bbf408911f4 100644 --- a/includes/api/ApiMove.php +++ b/includes/api/ApiMove.php @@ -302,8 +302,4 @@ class ApiMove extends ApiBase { public function getHelpUrls() { return 'https://www.mediawiki.org/wiki/API:Move'; } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiOpenSearch.php b/includes/api/ApiOpenSearch.php index ef56274197b..6403bd69316 100644 --- a/includes/api/ApiOpenSearch.php +++ b/includes/api/ApiOpenSearch.php @@ -123,8 +123,4 @@ class ApiOpenSearch extends ApiBase { public function getHelpUrls() { return 'https://www.mediawiki.org/wiki/API:Opensearch'; } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiOptions.php b/includes/api/ApiOptions.php index 20b41858e1e..6ed324c004b 100644 --- a/includes/api/ApiOptions.php +++ b/includes/api/ApiOptions.php @@ -202,8 +202,4 @@ class ApiOptions extends ApiBase { 'api.php?action=options&reset=&change=skin=monobook&optionname=nickname&optionvalue=[[User:Beau|Beau]]%20([[User_talk:Beau|talk]])&token=123ABC', ); } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiPageSet.php b/includes/api/ApiPageSet.php index 5fcb13231f6..e2f4daebadd 100644 --- a/includes/api/ApiPageSet.php +++ b/includes/api/ApiPageSet.php @@ -791,8 +791,4 @@ class ApiPageSet extends ApiQueryBase { array( 'code' => 'multisource', 'info' => "Cannot use 'revids' at the same time as 'dataSource'" ), ) ); } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiParamInfo.php b/includes/api/ApiParamInfo.php index 343a26256c0..42c490e2eb8 100644 --- a/includes/api/ApiParamInfo.php +++ b/includes/api/ApiParamInfo.php @@ -114,10 +114,10 @@ class ApiParamInfo extends ApiBase { $result = $this->getResult(); $retval['classname'] = get_class( $obj ); $retval['description'] = implode( "\n", (array)$obj->getFinalDescription() ); - $retval['examples'] = ''; - $retval['version'] = implode( "\n", (array)$obj->getVersion() ); + // version is deprecated since 1.21, but needs to be returned for v1 + $retval['version'] = ''; $retval['prefix'] = $obj->getModulePrefix(); if ( $obj->isReadMode() ) { @@ -366,8 +366,4 @@ class ApiParamInfo extends ApiBase { public function getHelpUrls() { return 'https://www.mediawiki.org/wiki/API:Parameter_information'; } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiParse.php b/includes/api/ApiParse.php index 94b4a8b5db0..143540b86ef 100644 --- a/includes/api/ApiParse.php +++ b/includes/api/ApiParse.php @@ -671,8 +671,4 @@ class ApiParse extends ApiBase { public function getHelpUrls() { return 'https://www.mediawiki.org/wiki/API:Parsing_wikitext#parse'; } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiPatrol.php b/includes/api/ApiPatrol.php index cb5e081ad6c..336068f376a 100644 --- a/includes/api/ApiPatrol.php +++ b/includes/api/ApiPatrol.php @@ -120,8 +120,4 @@ class ApiPatrol extends ApiBase { public function getHelpUrls() { return 'https://www.mediawiki.org/wiki/API:Patrol'; } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiProtect.php b/includes/api/ApiProtect.php index b3ca67e6f44..fa6da526a66 100644 --- a/includes/api/ApiProtect.php +++ b/includes/api/ApiProtect.php @@ -234,8 +234,4 @@ class ApiProtect extends ApiBase { public function getHelpUrls() { return 'https://www.mediawiki.org/wiki/API:Protect'; } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiPurge.php b/includes/api/ApiPurge.php index dbfa89cbcf3..e1ba759d323 100644 --- a/includes/api/ApiPurge.php +++ b/includes/api/ApiPurge.php @@ -187,8 +187,4 @@ class ApiPurge extends ApiBase { public function getHelpUrls() { return 'https://www.mediawiki.org/wiki/API:Purge'; } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiQuery.php b/includes/api/ApiQuery.php index 56b0f4e9c83..e5e6ca45b10 100644 --- a/includes/api/ApiQuery.php +++ b/includes/api/ApiQuery.php @@ -776,12 +776,4 @@ class ApiQuery extends ApiBase { 'https://www.mediawiki.org/wiki/API:Lists', ); } - - public function getVersion() { - $psModule = new ApiPageSet( $this ); - $vers = array(); - $vers[] = __CLASS__ . ': $Id$'; - $vers[] = $psModule->getVersion(); - return $vers; - } } diff --git a/includes/api/ApiQueryAllCategories.php b/includes/api/ApiQueryAllCategories.php index 6ada4aa716e..496a0eb8d42 100644 --- a/includes/api/ApiQueryAllCategories.php +++ b/includes/api/ApiQueryAllCategories.php @@ -231,8 +231,4 @@ class ApiQueryAllCategories extends ApiQueryGeneratorBase { public function getHelpUrls() { return 'https://www.mediawiki.org/wiki/API:Allcategories'; } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiQueryAllImages.php b/includes/api/ApiQueryAllImages.php index c78f0f3572c..bbc527244b5 100644 --- a/includes/api/ApiQueryAllImages.php +++ b/includes/api/ApiQueryAllImages.php @@ -405,8 +405,4 @@ class ApiQueryAllImages extends ApiQueryGeneratorBase { public function getHelpUrls() { return 'https://www.mediawiki.org/wiki/API:Allimages'; } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiQueryAllLinks.php b/includes/api/ApiQueryAllLinks.php index 620a394af35..e355f8b03e5 100644 --- a/includes/api/ApiQueryAllLinks.php +++ b/includes/api/ApiQueryAllLinks.php @@ -297,8 +297,4 @@ class ApiQueryAllLinks extends ApiQueryGeneratorBase { public function getHelpUrls() { return "https://www.mediawiki.org/wiki/API:All{$this->descriptionLink}s"; } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiQueryAllMessages.php b/includes/api/ApiQueryAllMessages.php index 9fd2db84220..fcc3dba7c23 100644 --- a/includes/api/ApiQueryAllMessages.php +++ b/includes/api/ApiQueryAllMessages.php @@ -291,8 +291,4 @@ class ApiQueryAllMessages extends ApiQueryBase { public function getHelpUrls() { return 'https://www.mediawiki.org/wiki/API:Meta#allmessages_.2F_am'; } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiQueryAllPages.php b/includes/api/ApiQueryAllPages.php index b180572bf85..0c6692a3e75 100644 --- a/includes/api/ApiQueryAllPages.php +++ b/includes/api/ApiQueryAllPages.php @@ -355,8 +355,4 @@ class ApiQueryAllPages extends ApiQueryGeneratorBase { public function getHelpUrls() { return 'https://www.mediawiki.org/wiki/API:Allpages'; } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiQueryAllUsers.php b/includes/api/ApiQueryAllUsers.php index 79f64694423..37f2b0f33f1 100644 --- a/includes/api/ApiQueryAllUsers.php +++ b/includes/api/ApiQueryAllUsers.php @@ -444,8 +444,4 @@ class ApiQueryAllUsers extends ApiQueryBase { public function getHelpUrls() { return 'https://www.mediawiki.org/wiki/API:Allusers'; } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiQueryBacklinks.php b/includes/api/ApiQueryBacklinks.php index bf918ddde2a..0df2899792a 100644 --- a/includes/api/ApiQueryBacklinks.php +++ b/includes/api/ApiQueryBacklinks.php @@ -555,8 +555,4 @@ class ApiQueryBacklinks extends ApiQueryGeneratorBase { public function getHelpUrls() { return $this->helpUrl; } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiQueryBase.php b/includes/api/ApiQueryBase.php index e36109a2d3d..02d071b7f0a 100644 --- a/includes/api/ApiQueryBase.php +++ b/includes/api/ApiQueryBase.php @@ -578,14 +578,6 @@ abstract class ApiQueryBase extends ApiBase { } return $errors; } - - /** - * Get version string for use in the API help output - * @return string - */ - public static function getBaseVersion() { - return __CLASS__ . ': $Id$'; - } } /** diff --git a/includes/api/ApiQueryBlocks.php b/includes/api/ApiQueryBlocks.php index 7cc17557b5d..0d2fa0d3c78 100644 --- a/includes/api/ApiQueryBlocks.php +++ b/includes/api/ApiQueryBlocks.php @@ -404,8 +404,4 @@ class ApiQueryBlocks extends ApiQueryBase { public function getHelpUrls() { return 'https://www.mediawiki.org/wiki/API:Blocks'; } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiQueryCategories.php b/includes/api/ApiQueryCategories.php index f05bb262de9..2b48eb0c0c9 100644 --- a/includes/api/ApiQueryCategories.php +++ b/includes/api/ApiQueryCategories.php @@ -273,8 +273,4 @@ class ApiQueryCategories extends ApiQueryGeneratorBase { public function getHelpUrls() { return 'https://www.mediawiki.org/wiki/API:Properties#categories_.2F_cl'; } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiQueryCategoryInfo.php b/includes/api/ApiQueryCategoryInfo.php index 31517fabafd..fbe555c0c8d 100644 --- a/includes/api/ApiQueryCategoryInfo.php +++ b/includes/api/ApiQueryCategoryInfo.php @@ -146,8 +146,4 @@ class ApiQueryCategoryInfo extends ApiQueryBase { public function getHelpUrls() { return 'https://www.mediawiki.org/wiki/API:Properties#categoryinfo_.2F_ci'; } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiQueryCategoryMembers.php b/includes/api/ApiQueryCategoryMembers.php index ca24f2b8223..6a392bd36c5 100644 --- a/includes/api/ApiQueryCategoryMembers.php +++ b/includes/api/ApiQueryCategoryMembers.php @@ -413,8 +413,4 @@ class ApiQueryCategoryMembers extends ApiQueryGeneratorBase { public function getHelpUrls() { return 'https://www.mediawiki.org/wiki/API:Categorymembers'; } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiQueryDeletedrevs.php b/includes/api/ApiQueryDeletedrevs.php index 9eab651f4d5..27d95ee3519 100644 --- a/includes/api/ApiQueryDeletedrevs.php +++ b/includes/api/ApiQueryDeletedrevs.php @@ -421,8 +421,4 @@ class ApiQueryDeletedrevs extends ApiQueryBase { public function getHelpUrls() { return 'https://www.mediawiki.org/wiki/API:Deletedrevs'; } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiQueryDisabled.php b/includes/api/ApiQueryDisabled.php index 6715969aafd..c0929a07ec9 100644 --- a/includes/api/ApiQueryDisabled.php +++ b/includes/api/ApiQueryDisabled.php @@ -61,8 +61,4 @@ class ApiQueryDisabled extends ApiQueryBase { public function getExamples() { return array(); } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiQueryDuplicateFiles.php b/includes/api/ApiQueryDuplicateFiles.php index d4a486a999f..3b044264a43 100644 --- a/includes/api/ApiQueryDuplicateFiles.php +++ b/includes/api/ApiQueryDuplicateFiles.php @@ -211,8 +211,4 @@ class ApiQueryDuplicateFiles extends ApiQueryGeneratorBase { public function getHelpUrls() { return 'https://www.mediawiki.org/wiki/API:Properties#duplicatefiles_.2F_df'; } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiQueryExtLinksUsage.php b/includes/api/ApiQueryExtLinksUsage.php index 6081601bbac..98380d66c75 100644 --- a/includes/api/ApiQueryExtLinksUsage.php +++ b/includes/api/ApiQueryExtLinksUsage.php @@ -272,8 +272,4 @@ class ApiQueryExtLinksUsage extends ApiQueryGeneratorBase { public function getHelpUrls() { return 'https://www.mediawiki.org/wiki/API:Exturlusage'; } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiQueryExternalLinks.php b/includes/api/ApiQueryExternalLinks.php index 1449a967843..c4a39d66a44 100644 --- a/includes/api/ApiQueryExternalLinks.php +++ b/includes/api/ApiQueryExternalLinks.php @@ -166,8 +166,4 @@ class ApiQueryExternalLinks extends ApiQueryBase { public function getHelpUrls() { return 'https://www.mediawiki.org/wiki/API:Properties#extlinks_.2F_el'; } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiQueryFilearchive.php b/includes/api/ApiQueryFilearchive.php index fcffc4d4182..8718371909b 100644 --- a/includes/api/ApiQueryFilearchive.php +++ b/includes/api/ApiQueryFilearchive.php @@ -374,8 +374,4 @@ class ApiQueryFilearchive extends ApiQueryBase { ), ); } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiQueryIWBacklinks.php b/includes/api/ApiQueryIWBacklinks.php index 283115d80bc..b47d31f2668 100644 --- a/includes/api/ApiQueryIWBacklinks.php +++ b/includes/api/ApiQueryIWBacklinks.php @@ -239,8 +239,4 @@ class ApiQueryIWBacklinks extends ApiQueryGeneratorBase { 'api.php?action=query&generator=iwbacklinks&giwbltitle=Test&giwblprefix=wikibooks&prop=info' ); } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiQueryIWLinks.php b/includes/api/ApiQueryIWLinks.php index 8e8a0756992..fc77b4e6c45 100644 --- a/includes/api/ApiQueryIWLinks.php +++ b/includes/api/ApiQueryIWLinks.php @@ -192,8 +192,4 @@ class ApiQueryIWLinks extends ApiQueryBase { 'api.php?action=query&prop=iwlinks&titles=Main%20Page' => 'Get interwiki links from the [[Main Page]]', ); } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiQueryImageInfo.php b/includes/api/ApiQueryImageInfo.php index 88c41a8a1d4..2b6ec66f441 100644 --- a/includes/api/ApiQueryImageInfo.php +++ b/includes/api/ApiQueryImageInfo.php @@ -703,8 +703,4 @@ class ApiQueryImageInfo extends ApiQueryBase { public function getHelpUrls() { return 'https://www.mediawiki.org/wiki/API:Properties#imageinfo_.2F_ii'; } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiQueryImages.php b/includes/api/ApiQueryImages.php index 16d54aad06e..aa7359b9670 100644 --- a/includes/api/ApiQueryImages.php +++ b/includes/api/ApiQueryImages.php @@ -192,8 +192,4 @@ class ApiQueryImages extends ApiQueryGeneratorBase { public function getHelpUrls() { return 'https://www.mediawiki.org/wiki/API:Properties#images_.2F_im'; } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiQueryInfo.php b/includes/api/ApiQueryInfo.php index efbd731fc29..94b6ad8e95f 100644 --- a/includes/api/ApiQueryInfo.php +++ b/includes/api/ApiQueryInfo.php @@ -816,8 +816,4 @@ class ApiQueryInfo extends ApiQueryBase { public function getHelpUrls() { return 'https://www.mediawiki.org/wiki/API:Properties#info_.2F_in'; } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiQueryLangBacklinks.php b/includes/api/ApiQueryLangBacklinks.php index d6346d3ff49..7a4880a4631 100644 --- a/includes/api/ApiQueryLangBacklinks.php +++ b/includes/api/ApiQueryLangBacklinks.php @@ -239,8 +239,4 @@ class ApiQueryLangBacklinks extends ApiQueryGeneratorBase { 'api.php?action=query&generator=langbacklinks&glbltitle=Test&glbllang=fr&prop=info' ); } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiQueryLangLinks.php b/includes/api/ApiQueryLangLinks.php index 9c54cfa285e..0aaa588a9cf 100644 --- a/includes/api/ApiQueryLangLinks.php +++ b/includes/api/ApiQueryLangLinks.php @@ -188,8 +188,4 @@ class ApiQueryLangLinks extends ApiQueryBase { public function getHelpUrls() { return 'https://www.mediawiki.org/wiki/API:Properties#langlinks_.2F_ll'; } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiQueryLinks.php b/includes/api/ApiQueryLinks.php index 54ee57c1588..138d79b2016 100644 --- a/includes/api/ApiQueryLinks.php +++ b/includes/api/ApiQueryLinks.php @@ -247,8 +247,4 @@ class ApiQueryLinks extends ApiQueryGeneratorBase { public function getHelpUrls() { return $this->helpUrl; } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiQueryLogEvents.php b/includes/api/ApiQueryLogEvents.php index b2eebfb00d5..6b778980901 100644 --- a/includes/api/ApiQueryLogEvents.php +++ b/includes/api/ApiQueryLogEvents.php @@ -545,8 +545,4 @@ class ApiQueryLogEvents extends ApiQueryBase { public function getHelpUrls() { return 'https://www.mediawiki.org/wiki/API:Logevents'; } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiQueryPageProps.php b/includes/api/ApiQueryPageProps.php index 1eef67e6c5b..189e15a0434 100644 --- a/includes/api/ApiQueryPageProps.php +++ b/includes/api/ApiQueryPageProps.php @@ -146,8 +146,4 @@ class ApiQueryPageProps extends ApiQueryBase { public function getHelpUrls() { return 'https://www.mediawiki.org/wiki/API:Properties#pageprops_.2F_pp'; } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiQueryProtectedTitles.php b/includes/api/ApiQueryProtectedTitles.php index 02050056ba4..4aa000073bd 100644 --- a/includes/api/ApiQueryProtectedTitles.php +++ b/includes/api/ApiQueryProtectedTitles.php @@ -264,8 +264,4 @@ class ApiQueryProtectedTitles extends ApiQueryGeneratorBase { public function getHelpUrls() { return 'https://www.mediawiki.org/wiki/API:Protectedtitles'; } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiQueryQueryPage.php b/includes/api/ApiQueryQueryPage.php index a8be26d3d9c..182bc2c6a03 100644 --- a/includes/api/ApiQueryQueryPage.php +++ b/includes/api/ApiQueryQueryPage.php @@ -220,8 +220,4 @@ class ApiQueryQueryPage extends ApiQueryGeneratorBase { 'api.php?action=query&list=querypage&qppage=Ancientpages' ); } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiQueryRandom.php b/includes/api/ApiQueryRandom.php index ddf5841b716..99854c17ebe 100644 --- a/includes/api/ApiQueryRandom.php +++ b/includes/api/ApiQueryRandom.php @@ -183,8 +183,4 @@ class ApiQueryRandom extends ApiQueryGeneratorBase { public function getExamples() { return 'api.php?action=query&list=random&rnnamespace=0&rnlimit=2'; } - - public function getVersion() { - return __CLASS__ . ': $Id: ApiQueryRandom.php overlordq$'; - } } diff --git a/includes/api/ApiQueryRecentChanges.php b/includes/api/ApiQueryRecentChanges.php index dae03a9a85a..f7a22bdc02c 100644 --- a/includes/api/ApiQueryRecentChanges.php +++ b/includes/api/ApiQueryRecentChanges.php @@ -736,8 +736,4 @@ class ApiQueryRecentChanges extends ApiQueryGeneratorBase { public function getHelpUrls() { return 'https://www.mediawiki.org/wiki/API:Recentchanges'; } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiQueryRevisions.php b/includes/api/ApiQueryRevisions.php index ecf47a9bb4e..27ea6befea1 100644 --- a/includes/api/ApiQueryRevisions.php +++ b/includes/api/ApiQueryRevisions.php @@ -854,8 +854,4 @@ class ApiQueryRevisions extends ApiQueryBase { public function getHelpUrls() { return 'https://www.mediawiki.org/wiki/API:Properties#revisions_.2F_rv'; } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiQuerySearch.php b/includes/api/ApiQuerySearch.php index a0a0fbe05f5..861833919b2 100644 --- a/includes/api/ApiQuerySearch.php +++ b/includes/api/ApiQuerySearch.php @@ -359,8 +359,4 @@ class ApiQuerySearch extends ApiQueryGeneratorBase { public function getHelpUrls() { return 'https://www.mediawiki.org/wiki/API:Search'; } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiQuerySiteinfo.php b/includes/api/ApiQuerySiteinfo.php index bb22448873e..a6a6dff9950 100644 --- a/includes/api/ApiQuerySiteinfo.php +++ b/includes/api/ApiQuerySiteinfo.php @@ -667,8 +667,4 @@ class ApiQuerySiteinfo extends ApiQueryBase { public function getHelpUrls() { return 'https://www.mediawiki.org/wiki/API:Meta#siteinfo_.2F_si'; } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiQueryStashImageInfo.php b/includes/api/ApiQueryStashImageInfo.php index a310d109e6c..1b973172b1c 100644 --- a/includes/api/ApiQueryStashImageInfo.php +++ b/includes/api/ApiQueryStashImageInfo.php @@ -138,9 +138,5 @@ class ApiQueryStashImageInfo extends ApiQueryImageInfo { ); } - public function getVersion() { - return __CLASS__ . ': $Id$'; - } - } diff --git a/includes/api/ApiQueryTags.php b/includes/api/ApiQueryTags.php index de30d06f4b5..e0637ff7313 100644 --- a/includes/api/ApiQueryTags.php +++ b/includes/api/ApiQueryTags.php @@ -195,8 +195,4 @@ class ApiQueryTags extends ApiQueryBase { 'api.php?action=query&list=tags&tgprop=displayname|description|hitcount' ); } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiQueryUserContributions.php b/includes/api/ApiQueryUserContributions.php index 96fea1a8e85..4d1edf185b4 100644 --- a/includes/api/ApiQueryUserContributions.php +++ b/includes/api/ApiQueryUserContributions.php @@ -543,8 +543,4 @@ class ApiQueryContributions extends ApiQueryBase { public function getHelpUrls() { return 'https://www.mediawiki.org/wiki/API:Usercontribs'; } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiQueryUserInfo.php b/includes/api/ApiQueryUserInfo.php index 6690665944b..963c8f8d8d3 100644 --- a/includes/api/ApiQueryUserInfo.php +++ b/includes/api/ApiQueryUserInfo.php @@ -303,8 +303,4 @@ class ApiQueryUserInfo extends ApiQueryBase { public function getHelpUrls() { return 'https://www.mediawiki.org/wiki/API:Meta#userinfo_.2F_ui'; } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiQueryUsers.php b/includes/api/ApiQueryUsers.php index e5690184a03..03a0b799236 100644 --- a/includes/api/ApiQueryUsers.php +++ b/includes/api/ApiQueryUsers.php @@ -396,8 +396,4 @@ class ApiQueryUsers extends ApiQueryBase { public function getHelpUrls() { return 'https://www.mediawiki.org/wiki/API:Users'; } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiQueryWatchlist.php b/includes/api/ApiQueryWatchlist.php index 22d98b7755c..dd5062450af 100644 --- a/includes/api/ApiQueryWatchlist.php +++ b/includes/api/ApiQueryWatchlist.php @@ -518,8 +518,4 @@ class ApiQueryWatchlist extends ApiQueryGeneratorBase { public function getHelpUrls() { return 'https://www.mediawiki.org/wiki/API:Watchlist'; } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiQueryWatchlistRaw.php b/includes/api/ApiQueryWatchlistRaw.php index 27b6f747f73..2cb4d9ebca8 100644 --- a/includes/api/ApiQueryWatchlistRaw.php +++ b/includes/api/ApiQueryWatchlistRaw.php @@ -222,8 +222,4 @@ class ApiQueryWatchlistRaw extends ApiQueryGeneratorBase { 'api.php?action=query&generator=watchlistraw&gwrshow=changed&prop=revisions', ); } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiResult.php b/includes/api/ApiResult.php index 91e20812d0a..5f752b32ebd 100644 --- a/includes/api/ApiResult.php +++ b/includes/api/ApiResult.php @@ -367,8 +367,4 @@ class ApiResult extends ApiBase { public function execute() { ApiBase::dieDebug( __METHOD__, 'execute() is not supported on Result object' ); } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiRollback.php b/includes/api/ApiRollback.php index 677df16a9b7..402bab11181 100644 --- a/includes/api/ApiRollback.php +++ b/includes/api/ApiRollback.php @@ -205,8 +205,4 @@ class ApiRollback extends ApiBase { public function getHelpUrls() { return 'https://www.mediawiki.org/wiki/API:Rollback'; } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiRsd.php b/includes/api/ApiRsd.php index f0e1fad6b07..752a6beaf7f 100644 --- a/includes/api/ApiRsd.php +++ b/includes/api/ApiRsd.php @@ -155,10 +155,6 @@ class ApiRsd extends ApiBase { } return $outputData; } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } class ApiFormatXmlRsd extends ApiFormatXml { @@ -170,8 +166,4 @@ class ApiFormatXmlRsd extends ApiFormatXml { public function getMimeType() { return 'application/rsd+xml'; } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiSetNotificationTimestamp.php b/includes/api/ApiSetNotificationTimestamp.php index c122f59357e..68160fa3752 100644 --- a/includes/api/ApiSetNotificationTimestamp.php +++ b/includes/api/ApiSetNotificationTimestamp.php @@ -278,8 +278,4 @@ class ApiSetNotificationTimestamp extends ApiBase { public function getHelpUrls() { return 'https://www.mediawiki.org/wiki/API:SetNotificationTimestamp'; } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiTokens.php b/includes/api/ApiTokens.php index 2c9b482c283..2be2b2416ab 100644 --- a/includes/api/ApiTokens.php +++ b/includes/api/ApiTokens.php @@ -151,8 +151,4 @@ class ApiTokens extends ApiBase { 'api.php?action=tokens&type=email|move' => 'Retrieve an email token and a move token' ); } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiUnblock.php b/includes/api/ApiUnblock.php index e34771fc216..5802a982e5a 100644 --- a/includes/api/ApiUnblock.php +++ b/includes/api/ApiUnblock.php @@ -178,8 +178,4 @@ class ApiUnblock extends ApiBase { public function getHelpUrls() { return 'https://www.mediawiki.org/wiki/API:Block'; } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiUndelete.php b/includes/api/ApiUndelete.php index 2ee86411c47..b1eeff3fcc6 100644 --- a/includes/api/ApiUndelete.php +++ b/includes/api/ApiUndelete.php @@ -176,8 +176,4 @@ class ApiUndelete extends ApiBase { public function getHelpUrls() { return 'https://www.mediawiki.org/wiki/API:Undelete'; } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiUpload.php b/includes/api/ApiUpload.php index 2e18e8ad685..4afc8e72b85 100644 --- a/includes/api/ApiUpload.php +++ b/includes/api/ApiUpload.php @@ -843,8 +843,4 @@ class ApiUpload extends ApiBase { public function getHelpUrls() { return 'https://www.mediawiki.org/wiki/API:Upload'; } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiUserrights.php b/includes/api/ApiUserrights.php index cbb66a41591..0c6ebb19d0f 100644 --- a/includes/api/ApiUserrights.php +++ b/includes/api/ApiUserrights.php @@ -141,8 +141,4 @@ class ApiUserrights extends ApiBase { public function getHelpUrls() { return 'https://www.mediawiki.org/wiki/API:User_group_membership'; } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } diff --git a/includes/api/ApiWatch.php b/includes/api/ApiWatch.php index 275275e21fd..16da176723a 100644 --- a/includes/api/ApiWatch.php +++ b/includes/api/ApiWatch.php @@ -151,8 +151,4 @@ class ApiWatch extends ApiBase { public function getHelpUrls() { return 'https://www.mediawiki.org/wiki/API:Watch'; } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } }