]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/block.php
[CORE] Added documentation and fixed typo in attachments action
[quix0rs-gnu-social.git] / actions / block.php
index 7458caa6ac73200ea50e2be58c3fd97c2f9ac839..1d2910dc1914ec9ab05c1b8f1d08572439c3db9f 100644 (file)
@@ -53,7 +53,7 @@ class BlockAction extends ProfileFormAction
      *
      * @return boolean success flag
      */
-    function prepare($args)
+    function prepare(array $args = array())
     {
         if (!parent::prepare($args)) {
             return false;
@@ -74,13 +74,11 @@ class BlockAction extends ProfileFormAction
     /**
      * Handle request
      *
-     * Shows a page with list of favorite notices
-     *
      * @param array $args $_REQUEST args; handled in prepare()
      *
      * @return void
      */
-    function handle($args)
+    function handle()
     {
         if ($_SERVER['REQUEST_METHOD'] == 'POST') {
             if ($this->arg('no')) {