summaryrefslogtreecommitdiff
path: root/actions/apigroupmembership.php
diff options
context:
space:
mode:
authorSiebrand Mazeland <s.mazeland@xs4all.nl>2010-10-25 23:51:00 +0200
committerSiebrand Mazeland <s.mazeland@xs4all.nl>2010-10-28 01:21:09 +0200
commita12474a99d0322123b1c8318dfa609d5d5392c7f (patch)
tree85e97c1475acd17cce415ff80848d518ab7e4be9 /actions/apigroupmembership.php
parent60b66bdd6e3bbc083aec6126b8583714dc24b94d (diff)
* i18n/L10n fixes.
* translator documentation updated. * superfluous whitespace removed.
Diffstat (limited to 'actions/apigroupmembership.php')
-rw-r--r--actions/apigroupmembership.php11
1 files changed, 2 insertions, 9 deletions
diff --git a/actions/apigroupmembership.php b/actions/apigroupmembership.php
index b7f3064b5..99ac965fa 100644
--- a/actions/apigroupmembership.php
+++ b/actions/apigroupmembership.php
@@ -49,7 +49,6 @@ require_once INSTALLDIR . '/lib/apiprivateauth.php';
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0
* @link http://status.net/
*/
-
class ApiGroupMembershipAction extends ApiPrivateAuthAction
{
var $group = null;
@@ -61,9 +60,7 @@ class ApiGroupMembershipAction extends ApiPrivateAuthAction
* @param array $args $_REQUEST args
*
* @return boolean success flag
- *
*/
-
function prepare($args)
{
parent::prepare($args);
@@ -83,12 +80,12 @@ class ApiGroupMembershipAction extends ApiPrivateAuthAction
*
* @return void
*/
-
function handle($args)
{
parent::handle($args);
if (empty($this->group)) {
+ // TRANS: Client error displayed trying to show group membership on a non-existing group.
$this->clientError(_('Group not found.'), 404, $this->format);
return false;
}
@@ -104,6 +101,7 @@ class ApiGroupMembershipAction extends ApiPrivateAuthAction
break;
default:
$this->clientError(
+ // TRANS: Client error displayed trying to execute an unknown API method showing group membership.
_('API method not found.'),
404,
$this->format
@@ -117,7 +115,6 @@ class ApiGroupMembershipAction extends ApiPrivateAuthAction
*
* @return array $profiles list of profiles
*/
-
function getProfiles()
{
$profiles = array();
@@ -143,7 +140,6 @@ class ApiGroupMembershipAction extends ApiPrivateAuthAction
*
* @return boolean true
*/
-
function isReadOnly($args)
{
return true;
@@ -154,7 +150,6 @@ class ApiGroupMembershipAction extends ApiPrivateAuthAction
*
* @return string datestamp of the lastest profile in the group
*/
-
function lastModified()
{
if (!empty($this->profiles) && (count($this->profiles) > 0)) {
@@ -173,7 +168,6 @@ class ApiGroupMembershipAction extends ApiPrivateAuthAction
*
* @return string etag
*/
-
function etag()
{
if (!empty($this->profiles) && (count($this->profiles) > 0)) {
@@ -194,5 +188,4 @@ class ApiGroupMembershipAction extends ApiPrivateAuthAction
return null;
}
-
}