forked from GNUsocial/gnu-social
		
	PHPCS newbookmark
This commit is contained in:
		@@ -55,6 +55,12 @@ class NewbookmarkAction extends Action
 | 
				
			|||||||
    private $_tags        = null;
 | 
					    private $_tags        = null;
 | 
				
			||||||
    private $_description = null;
 | 
					    private $_description = null;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    /**
 | 
				
			||||||
 | 
					     * Returns the title of the action
 | 
				
			||||||
 | 
					     *
 | 
				
			||||||
 | 
					     * @return string Action title
 | 
				
			||||||
 | 
					     */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    function title()
 | 
					    function title()
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        return _('New bookmark');
 | 
					        return _('New bookmark');
 | 
				
			||||||
@@ -75,7 +81,8 @@ class NewbookmarkAction extends Action
 | 
				
			|||||||
        $this->_user = common_current_user();
 | 
					        $this->_user = common_current_user();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if (empty($this->_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()) {
 | 
					        if ($this->isPost()) {
 | 
				
			||||||
@@ -187,3 +194,4 @@ class NewbookmarkAction extends Action
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					 
 | 
				
			||||||
		Reference in New Issue
	
	Block a user