/** * Update the subject * * @param string $subject * @return void * @access public * @since 7/11/07 */ function updateSubject($subject) { // Check Authorizations $authZ = Services::getService('AuthZ'); if (!$this->canModify()) { throw new PermissionDeniedException("You are not authorized to change this comment."); } if ($subject) { $this->_asset->updateDisplayName(HtmlString::getSafeHtml($subject)); } else { $this->_asset->updateDisplayName(_("(untitled)")); } CommentManager::logMessage('Comment Subject Updated', CommentManager::getCommentParentAsset($this), array($this->getId())); }