]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/facebookremove.php
FileAction redirections weren't being added (e.g.: /notice/$notice_id/file)
[quix0rs-gnu-social.git] / actions / facebookremove.php
index 79dc32e497b0a66bc76a71541f57c0b68bfe5bec..9ca7a77a84413c0aee266656fccb25fdd113811e 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /*
  * Laconica - a distributed open-source microblogging tool
- * Copyright (C) 2008, Controlez-Vous, Inc.
+ * Copyright (C) 2008, 2009, Control Yourself, Inc.
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU Affero General Public License as published by
 
 if (!defined('LACONICA')) { exit(1); }
 
-require_once(INSTALLDIR.'/lib/facebookaction.php');
+require_once INSTALLDIR.'/lib/facebookaction.php';
 
-class FacebookremoveAction extends FacebookAction {
+class FacebookremoveAction extends FacebookAction
+{
 
     function handle($args)
     {
@@ -52,7 +53,7 @@ class FacebookremoveAction extends FacebookAction {
 
             if (!$result) {
                 common_log_db_error($flink, 'DELETE', __FILE__);
-                common_server_error(_('Couldn\'t remove Facebook user.'));
+                $this->serverError(_('Couldn\'t remove Facebook user.'));
                 return;
             }