API: Mark seldom-used formats as deprecated
[lhc/web/wiklou.git] / includes / api / ApiFormatYaml.php
index 730ad8e..9f9b057 100644 (file)
@@ -34,11 +34,12 @@ class ApiFormatYaml extends ApiFormatJson {
                return 'application/yaml';
        }
 
-       public function getDescription() {
-               return 'Output data in YAML format' . parent::getDescription();
+       public function execute() {
+               $this->markDeprecated();
+               parent::execute();
        }
 
-       public function getVersion() {
-               return __CLASS__ . ': $Id$';
+       public function getDescription() {
+               return 'DEPRECATED! Output data in YAML format' . ApiFormatBase::getDescription();
        }
 }