diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2015-06-04 07:31:04 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2015-06-04 07:58:39 +0200 |
commit | f6d65e533c62f6deb21342d4901ece24497b433e (patch) | |
tree | f28adf0362d14bcd448f7b65a7aaf38650f923aa /extensions/TitleBlacklist/api/ApiQueryTitleBlacklist.php | |
parent | c27b2e832fe25651ef2410fae85b41072aae7519 (diff) |
Update to MediaWiki 1.25.1
Diffstat (limited to 'extensions/TitleBlacklist/api/ApiQueryTitleBlacklist.php')
-rw-r--r-- | extensions/TitleBlacklist/api/ApiQueryTitleBlacklist.php | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/extensions/TitleBlacklist/api/ApiQueryTitleBlacklist.php b/extensions/TitleBlacklist/api/ApiQueryTitleBlacklist.php index 1da70d2a..6fa9db59 100644 --- a/extensions/TitleBlacklist/api/ApiQueryTitleBlacklist.php +++ b/extensions/TitleBlacklist/api/ApiQueryTitleBlacklist.php @@ -90,6 +90,9 @@ class ApiQueryTitleBlacklist extends ApiBase { ); } + /** + * @deprecated since MediaWiki core 1.25 + */ public function getParamDescription() { return array( 'title' => 'The string to validate against the blacklist', @@ -98,10 +101,16 @@ class ApiQueryTitleBlacklist extends ApiBase { ); } + /** + * @deprecated since MediaWiki core 1.25 + */ public function getDescription() { return 'Validate an article title, filename, or username against the TitleBlacklist.'; } + /** + * @deprecated since MediaWiki core 1.25 + */ public function getExamples() { return array( 'api.php?action=titleblacklist&tbtitle=Foo', @@ -109,7 +118,15 @@ class ApiQueryTitleBlacklist extends ApiBase { ); } - public function getVersion() { - return __CLASS__ . ': $Id$'; + /** + * @see ApiBase::getExamplesMessages() + */ + protected function getExamplesMessages() { + return array( + 'action=titleblacklist&tbtitle=Foo' + => 'apihelp-titleblacklist-example-1', + 'action=titleblacklist&tbtitle=Bar&tbaction=edit' + => 'apihelp-titleblacklist-example-2', + ); } } |