]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/apignusocialconfig.php
Added missing type-hint for EndPublicGroupNav (it is Menu).
[quix0rs-gnu-social.git] / actions / apignusocialconfig.php
index a6105006b4dcdfb03a5e0d8cee8dd2b18bf3ff5f..e86a5636e3cb4e117c9c8a5e62454ec003d0e847 100644 (file)
@@ -113,13 +113,8 @@ class ApiGNUsocialConfigAction extends ApiAction
             $this->endDocument('json');
             break;
         default:
-            $this->clientError(
-                // TRANS: Client error displayed when coming across a non-supported API method.
-                _('API method not found.'),
-                404,
-                $this->format
-            );
-            break;
+            // TRANS: Client error displayed when coming across a non-supported API method.
+            $this->clientError(_('API method not found.'), 404);
         }
     }
 
@@ -146,7 +141,7 @@ class ApiGNUsocialConfigAction extends ApiAction
      *
      * @return boolean is read only action?
      */
-    function isReadOnly($args)
+    function isReadOnly(array $args=array())
     {
         return true;
     }