From 503cd2f4ae5f75eb110d67abcb5d3065cdc14a82 Mon Sep 17 00:00:00 2001 From: Yuri Astrakhan Date: Mon, 14 Jan 2013 17:01:42 -0500 Subject: [PATCH] (bug 35885) remove api version string and parameter API was using SVN's version keyword which GIT does not support. All related methods were either removed, or for those that could have been used from extensions, emptied out. api.php?version now shows unrecognized param warning. Change-Id: I910ca1448ed2ed697ac19b17c486d130aa1d7e03 --- RELEASE-NOTES-1.21 | 1 + includes/api/ApiBase.php | 69 ++------------------ includes/api/ApiBlock.php | 4 -- includes/api/ApiComparePages.php | 4 -- includes/api/ApiCreateAccount.php | 4 -- includes/api/ApiDelete.php | 4 -- includes/api/ApiDisabled.php | 4 -- includes/api/ApiEditPage.php | 4 -- includes/api/ApiEmailUser.php | 4 -- includes/api/ApiExpandTemplates.php | 4 -- includes/api/ApiFeedContributions.php | 4 -- includes/api/ApiFeedWatchlist.php | 4 -- includes/api/ApiFileRevert.php | 4 -- includes/api/ApiFormatBase.php | 8 --- includes/api/ApiFormatDbg.php | 4 -- includes/api/ApiFormatDump.php | 4 -- includes/api/ApiFormatJson.php | 4 -- includes/api/ApiFormatNone.php | 4 -- includes/api/ApiFormatPhp.php | 4 -- includes/api/ApiFormatRaw.php | 4 -- includes/api/ApiFormatTxt.php | 4 -- includes/api/ApiFormatWddx.php | 4 -- includes/api/ApiFormatXml.php | 4 -- includes/api/ApiFormatYaml.php | 4 -- includes/api/ApiHelp.php | 4 -- includes/api/ApiImport.php | 4 -- includes/api/ApiLogin.php | 4 -- includes/api/ApiLogout.php | 4 -- includes/api/ApiMain.php | 29 ++------ includes/api/ApiMove.php | 4 -- includes/api/ApiOpenSearch.php | 4 -- includes/api/ApiOptions.php | 4 -- includes/api/ApiPageSet.php | 4 -- includes/api/ApiParamInfo.php | 8 +-- includes/api/ApiParse.php | 4 -- includes/api/ApiPatrol.php | 4 -- includes/api/ApiProtect.php | 4 -- includes/api/ApiPurge.php | 4 -- includes/api/ApiQuery.php | 8 --- includes/api/ApiQueryAllCategories.php | 4 -- includes/api/ApiQueryAllImages.php | 4 -- includes/api/ApiQueryAllLinks.php | 4 -- includes/api/ApiQueryAllMessages.php | 4 -- includes/api/ApiQueryAllPages.php | 4 -- includes/api/ApiQueryAllUsers.php | 4 -- includes/api/ApiQueryBacklinks.php | 4 -- includes/api/ApiQueryBase.php | 8 --- includes/api/ApiQueryBlocks.php | 4 -- includes/api/ApiQueryCategories.php | 4 -- includes/api/ApiQueryCategoryInfo.php | 4 -- includes/api/ApiQueryCategoryMembers.php | 4 -- includes/api/ApiQueryDeletedrevs.php | 4 -- includes/api/ApiQueryDisabled.php | 4 -- includes/api/ApiQueryDuplicateFiles.php | 4 -- includes/api/ApiQueryExtLinksUsage.php | 4 -- includes/api/ApiQueryExternalLinks.php | 4 -- includes/api/ApiQueryFilearchive.php | 4 -- includes/api/ApiQueryIWBacklinks.php | 4 -- includes/api/ApiQueryIWLinks.php | 4 -- includes/api/ApiQueryImageInfo.php | 4 -- includes/api/ApiQueryImages.php | 4 -- includes/api/ApiQueryInfo.php | 4 -- includes/api/ApiQueryLangBacklinks.php | 4 -- includes/api/ApiQueryLangLinks.php | 4 -- includes/api/ApiQueryLinks.php | 4 -- includes/api/ApiQueryLogEvents.php | 4 -- includes/api/ApiQueryPageProps.php | 4 -- includes/api/ApiQueryProtectedTitles.php | 4 -- includes/api/ApiQueryQueryPage.php | 4 -- includes/api/ApiQueryRandom.php | 4 -- includes/api/ApiQueryRecentChanges.php | 4 -- includes/api/ApiQueryRevisions.php | 4 -- includes/api/ApiQuerySearch.php | 4 -- includes/api/ApiQuerySiteinfo.php | 4 -- includes/api/ApiQueryStashImageInfo.php | 4 -- includes/api/ApiQueryTags.php | 4 -- includes/api/ApiQueryUserContributions.php | 4 -- includes/api/ApiQueryUserInfo.php | 4 -- includes/api/ApiQueryUsers.php | 4 -- includes/api/ApiQueryWatchlist.php | 4 -- includes/api/ApiQueryWatchlistRaw.php | 4 -- includes/api/ApiResult.php | 4 -- includes/api/ApiRollback.php | 4 -- includes/api/ApiRsd.php | 8 --- includes/api/ApiSetNotificationTimestamp.php | 4 -- includes/api/ApiTokens.php | 4 -- includes/api/ApiUnblock.php | 4 -- includes/api/ApiUndelete.php | 4 -- includes/api/ApiUpload.php | 4 -- includes/api/ApiUserrights.php | 4 -- includes/api/ApiWatch.php | 4 -- 91 files changed, 13 insertions(+), 458 deletions(-) diff --git a/RELEASE-NOTES-1.21 b/RELEASE-NOTES-1.21 index cfa979a66e..0ce0593c9a 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 dd685f4c0f..4efa7e6afe 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 4779067407..b58be11599 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 67412598a8..230ed33979 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 628f48ec19..0209fb1237 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 964e0ae40b..cfa80352f9 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 13975aec01..ebcfa011a4 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 b1066ccb0a..74d3e14d82 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 4fa034341c..ba8edc08b9 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 160f5b913a..f740cf8ac5 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 15a377c144..2f02674fe3 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 373abdb99b..7a91641a77 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 092b0036f2..1e463e5e12 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 8ad9b8ca35..e8edb3d7e0 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 3d2a39ca56..f280a29009 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 0f055e130c..db6608374e 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 acbc7d3bc2..19c5e5f085 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 b3bde37851..bee1ac964b 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 fac2ca587d..99a047a55b 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 184f0a34cc..d278efa0bc 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 71414593fe..3e1f59235b 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 65056e44af..fd1b32765d 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 5ccf1859a0..582e405472 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 9a8e3bcefb..700d4a5e9d 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 2b5de21af7..28bb2e94e1 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 637c1fff7f..f5636bd236 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 1f91fe92ae..3df952fa9f 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 b2f634d047..00dd62563e 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 57ccc7a81b..9f88cd6d7f 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 9b70b56de3..bbf408911f 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 ef56274197..6403bd6931 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 20b41858e1..6ed324c004 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 5fcb13231f..e2f4daebad 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 343a26256c..42c490e2eb 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 94b4a8b5db..143540b86e 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 cb5e081ad6..336068f376 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 b3ca67e6f4..fa6da526a6 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 dbfa89cbcf..e1ba759d32 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 56b0f4e9c8..e5e6ca45b1 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 6ada4aa716..496a0eb8d4 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 c78f0f3572..bbc527244b 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 620a394af3..e355f8b03e 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 9fd2db8422..fcc3dba7c2 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 b180572bf8..0c6692a3e7 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 79f6469442..37f2b0f33f 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 bf918ddde2..0df2899792 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 e36109a2d3..02d071b7f0 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 7cc17557b5..0d2fa0d3c7 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 f05bb262de..2b48eb0c0c 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 31517fabaf..fbe555c0c8 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 ca24f2b822..6a392bd36c 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 9eab651f4d..27d95ee351 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 6715969aaf..c0929a07ec 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 d4a486a999..3b044264a4 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 6081601bba..98380d66c7 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 1449a96784..c4a39d66a4 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 fcffc4d418..8718371909 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 283115d80b..b47d31f266 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 8e8a075699..fc77b4e6c4 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 88c41a8a1d..2b6ec66f44 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 16d54aad06..aa7359b967 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 efbd731fc2..94b6ad8e95 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 d6346d3ff4..7a4880a463 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 9c54cfa285..0aaa588a9c 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 54ee57c158..138d79b201 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 b2eebfb00d..6b77898090 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 1eef67e6c5..189e15a043 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 02050056ba..4aa000073b 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 a8be26d3d9..182bc2c6a0 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 ddf5841b71..99854c17eb 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 dae03a9a85..f7a22bdc02 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 ecf47a9bb4..27ea6befea 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 a0a0fbe05f..861833919b 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 bb22448873..a6a6dff995 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 a310d109e6..1b973172b1 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 de30d06f4b..e0637ff731 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 96fea1a8e8..4d1edf185b 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 6690665944..963c8f8d8d 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 e5690184a0..03a0b79923 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 22d98b7755..dd5062450a 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 27b6f747f7..2cb4d9ebca 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 91e20812d0..5f752b32eb 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 677df16a9b..402bab1118 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 f0e1fad6b0..752a6beaf7 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 c122f59357..68160fa375 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 2c9b482c28..2be2b2416a 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 e34771fc21..5802a982e5 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 2ee86411c4..b1eeff3fcc 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 2e18e8ad68..4afc8e72b8 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 cbb66a4159..0c6ebb19d0 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 275275e21f..16da176723 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$'; - } } -- 2.20.1