]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/apiusershow.php
Fix inconsistent title case in page title
[quix0rs-gnu-social.git] / actions / apiusershow.php
index b3a939b431b2ab2427d1637d6f90d8df7160f4bd..a7fe0dcc1e2cddfa68a6f23038e53e7c7bcc4bc2 100644 (file)
@@ -34,7 +34,7 @@ if (!defined('STATUSNET')) {
     exit(1);
 }
 
-require_once INSTALLDIR . '/lib/api.php';
+require_once INSTALLDIR . '/lib/apiprivateauth.php';
 
 /**
  * Ouputs information for a user, specified by ID or screen name.
@@ -50,7 +50,7 @@ require_once INSTALLDIR . '/lib/api.php';
  * @link     http://status.net/
  */
 
-class ApiUserShowAction extends ApiAction
+class ApiUserShowAction extends ApiPrivateAuthAction
 {
     /**
      * Take arguments for running
@@ -98,7 +98,7 @@ class ApiUserShowAction extends ApiAction
         }
 
         if (!in_array($this->format, array('xml', 'json'))) {
-            $this->clientError(_('API method not found!'), $code = 404);
+            $this->clientError(_('API method not found.'), $code = 404);
             return;
         }