* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0
* @link http://status.net/
*/
-
class GroupbyidAction extends Action
{
/** group we're viewing. */
*
* @return boolean true
*/
-
function isReadOnly($args)
{
return true;
{
parent::prepare($args);
- if (!common_config('inboxes','enabled')) {
- $this->serverError(_('Inboxes must be enabled for groups to work'));
- return false;
- }
-
$id = $this->arg('id');
if (!$id) {
- $this->clientError(_('No ID'));
+ // TRANS: Client error displayed referring to a group's permalink without providing a group ID.
+ $this->clientError(_('No ID.'));
return false;
}
$this->group = User_group::staticGet('id', $id);
if (!$this->group) {
- $this->clientError(_('No such group'), 404);
+ // TRANS: Client error displayed referring to a group's permalink for a non-existing group ID.
+ $this->clientError(_('No such group.'), 404);
return false;
}
*
* @return void
*/
-
function handle($args)
{
common_redirect($this->group->homeUrl(), 303);
}
-}
\ No newline at end of file
+}