]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
ApiOAuthAction functions didn't match parents
authorMikael Nordfeldth <mmn@hethane.se>
Sat, 6 Jun 2015 19:57:42 +0000 (21:57 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Sat, 6 Jun 2015 19:57:42 +0000 (21:57 +0200)
lib/apioauthaction.php

index 8da7e5c61c5daee73aa40a5ad76ab61fe99bcd84..95a3bec45d8a3ecd1aeb3b7c72dafb7473f7385d 100644 (file)
@@ -54,25 +54,10 @@ class ApiOAuthAction extends ApiAction
         return false;
     }
 
-    function prepare($args)
+    protected function prepare(array $args=array())
     {
-        parent::prepare($args);
-        return true;
-    }
-
-    /**
-     * Handle input, produce output
-     *
-     * Switches on request method; either shows the form or handles its input.
-     *
-     * @param array $args $_REQUEST data
-     *
-     * @return void
-     */
-    function handle($args)
-    {
-        parent::handle($args);
         self::cleanRequest();
+        return parent::prepare($args);
     }
 
     /*