]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/twitapinotifications.php
Better exception handling in index
[quix0rs-gnu-social.git] / actions / twitapinotifications.php
index 45a33427bc389e1d95c735e7bcf913951160fb38..411971af16ab536f1016b5af9a7128931c342bf0 100644 (file)
@@ -22,19 +22,19 @@ if (!defined('LACONICA')) { exit(1); }
 require_once(INSTALLDIR.'/lib/twitterapi.php');
 
 # This naming convention looks real sick
-class TwitapinotificationsAction extends TwitterapiAction {
+class TwitapinotificationsAction extends TwitterapiAction
+{
 
+    function follow($args, $apidata)
+    {
+        parent::handle($args);
+        $this->serverError(_('API method under construction.'), $code=501);
+    }
+
+    function leave($args, $apidata)
+    {
+        parent::handle($args);
+        $this->serverError(_('API method under construction.'), $code=501);
+    }
 
-       function follow($args, $apidata) {
-               parent::handle($args);
-               common_server_error("API method under construction.", $code=501);
-               exit();
-       }
-       
-       function leave($args, $apidata) {
-               parent::handle($args);
-               common_server_error("API method under construction.", $code=501);
-               exit();
-       }
-       
 }
\ No newline at end of file