Merge "API: HTMLize and internationalize the help, add Special:ApiHelp"
[lhc/web/wiklou.git] / includes / api / ApiTokens.php
index 9287fe6..e5e9d5d 100644 (file)
@@ -34,6 +34,7 @@ class ApiTokens extends ApiBase {
                $this->setWarning(
                        "action=tokens has been deprecated. Please use action=query&meta=tokens instead."
                );
+               $this->logFeatureUsage( "action=tokens" );
 
                $params = $this->extractRequestParams();
                $res = array();
@@ -76,6 +77,10 @@ class ApiTokens extends ApiBase {
                return $types;
        }
 
+       public function isDeprecated() {
+               return true;
+       }
+
        public function getAllowedParams() {
                return array(
                        'type' => array(