]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/apignusocialversion.php
Always naming it 'plugin' is not good, it can easily confuse. So better name it
[quix0rs-gnu-social.git] / actions / apignusocialversion.php
index 88fb5c51a62c2521c57414b6f17fdf3701ed5508..772e40270d5c4e2050d82e4bb39e7c2fc724949d 100644 (file)
@@ -52,12 +52,12 @@ class ApiGNUsocialVersionAction extends ApiPrivateAuthAction
         switch ($this->format) {
         case 'xml':
             $this->initDocument('xml');
-            $this->element('version', null, STATUSNET_VERSION);
+            $this->element('version', null, GNUSOCIAL_VERSION);
             $this->endDocument('xml');
             break;
         case 'json':
             $this->initDocument('json');
-            print '"'.STATUSNET_VERSION.'"';
+            print '"'.GNUSOCIAL_VERSION.'"';
             $this->endDocument('json');
             break;
         default:
@@ -75,7 +75,7 @@ class ApiGNUsocialVersionAction extends ApiPrivateAuthAction
      *
      * @return boolean is read only action?
      */
-    function isReadOnly($args)
+    function isReadOnly(array $args=array())
     {
         return true;
     }