]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/apigroupleave.php
Uses a fixed height for header to control the layout for notice form
[quix0rs-gnu-social.git] / actions / apigroupleave.php
index 4e3192ac0849b5297547ebdcd13bdf8922bf663a..514a3a557da4e923dbe419e9cf150607c92cbfe2 100644 (file)
@@ -21,6 +21,9 @@
  *
  * @category  API
  * @package   StatusNet
+ * @author    Craig Andrews <candrews@integralblue.com>
+ * @author    Evan Prodromou <evan@status.net>
+ * @author    Jeffery To <jeffery.to@gmail.com>
  * @author    Zach Copley <zach@status.net>
  * @copyright 2009 StatusNet, Inc.
  * @license   http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0
@@ -38,6 +41,9 @@ require_once INSTALLDIR . '/lib/apiauth.php';
  *
  * @category API
  * @package  StatusNet
+ * @author   Craig Andrews <candrews@integralblue.com>
+ * @author   Evan Prodromou <evan@status.net>
+ * @author   Jeffery To <jeffery.to@gmail.com>
  * @author   Zach Copley <zach@status.net>
  * @license  http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0
  * @link     http://status.net/
@@ -45,7 +51,6 @@ require_once INSTALLDIR . '/lib/apiauth.php';
 
 class ApiGroupLeaveAction extends ApiAuthAction
 {
-    var $user    = null;
     var $group   = null;
 
     /**
@@ -91,12 +96,12 @@ class ApiGroupLeaveAction extends ApiAuthAction
         }
 
         if (empty($this->user)) {
-            $this->clientError(_('No such user!'), 404, $this->format);
+            $this->clientError(_('No such user.'), 404, $this->format);
             return;
         }
 
         if (empty($this->group)) {
-            $this->clientError('Group not found!', 404, $this->format);
+            $this->clientError(_('Group not found!'), 404, $this->format);
             return false;
         }
 
@@ -117,13 +122,13 @@ class ApiGroupLeaveAction extends ApiAuthAction
             $this->serverError(
                 sprintf(
                     _('Could not remove user %s to group %s.'),
-                    $this->user->nickname, 
+                    $this->user->nickname,
                     $this->$group->nickname
                 )
             );
             return;
         }
-       
+
         switch($this->format) {
         case 'xml':
             $this->show_single_xml_group($this->group);