forked from GNUsocial/gnu-social
PHPCS newbookmark
This commit is contained in:
parent
907f1ad633
commit
d9ff466d2c
@ -55,6 +55,12 @@ class NewbookmarkAction extends Action
|
||||
private $_tags = null;
|
||||
private $_description = null;
|
||||
|
||||
/**
|
||||
* Returns the title of the action
|
||||
*
|
||||
* @return string Action title
|
||||
*/
|
||||
|
||||
function title()
|
||||
{
|
||||
return _('New bookmark');
|
||||
@ -75,7 +81,8 @@ class NewbookmarkAction extends Action
|
||||
$this->_user = common_current_user();
|
||||
|
||||
if (empty($this->_user)) {
|
||||
throw new ClientException(_("Must be logged in to post a bookmark."), 403);
|
||||
throw new ClientException(_("Must be logged in to post a bookmark."),
|
||||
403);
|
||||
}
|
||||
|
||||
if ($this->isPost()) {
|
||||
@ -187,3 +194,4 @@ class NewbookmarkAction extends Action
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user