]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/apigroupshow.php
Merge branch 'locshunt' into 0.9.x
[quix0rs-gnu-social.git] / actions / apigroupshow.php
index 2bdb22bc41d8ee22f636386e43a6f5adfca32c80..aae4d249c3e8ecb9cd80ee416b55288091425afb 100644 (file)
@@ -34,7 +34,7 @@ if (!defined('STATUSNET')) {
     exit(1);
 }
 
-require_once INSTALLDIR . '/lib/api.php';
+require_once INSTALLDIR . '/lib/apiprivateauth.php';
 
 /**
  * Outputs detailed information about the group specified by ID
@@ -49,7 +49,7 @@ require_once INSTALLDIR . '/lib/api.php';
  * @link     http://status.net/
  */
 
-class ApiGroupShowAction extends ApiAction
+class ApiGroupShowAction extends ApiPrivateAuthAction
 {
     var $group = null;
 
@@ -87,7 +87,7 @@ class ApiGroupShowAction extends ApiAction
 
         if (empty($this->group)) {
             $this->clientError(
-                'Group not found!',
+                _('Group not found!'),
                 404,
                 $this->format
             );
@@ -96,7 +96,7 @@ class ApiGroupShowAction extends ApiAction
 
         switch($this->format) {
         case 'xml':
-            $this->show_single_xml_group($this->group);
+            $this->showSingleXmlGroup($this->group);
             break;
         case 'json':
             $this->showSingleJsonGroup($this->group);