exit(1);
}
-require_once INSTALLDIR . '/lib/apiprivateauth.php';
-
/**
* Returns of the lastest 20 groups for the site
*
*
* @return boolean success flag
*/
- function prepare($args)
+ function prepare(array $args = array())
{
parent::prepare($args);
*
* @return void
*/
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
$sitename = common_config('site', 'name');
// TRANS: Message is used as a title when listing the lastest 20 groups. %s is a site name.
break;
default:
$this->clientError(
- // TRANS: Client error displayed trying to execute an unknown API method listing the latest 20 groups.
+ // TRANS: Client error displayed when coming across a non-supported API method.
_('API method not found.'),
404,
$this->format