X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FNoticeTitle%2FNoticeTitlePlugin.php;h=2dbaa356723b224eeb4f6abe764997aad34eb68b;hb=3d334451c45bd93b222d58155404786ee0667a0e;hp=87e07d5a63fb75fdadf5d76e0adbec6cf5d4525d;hpb=f3d80a3576257046471d51952b9e057dd98a6d45;p=quix0rs-gnu-social.git diff --git a/plugins/NoticeTitle/NoticeTitlePlugin.php b/plugins/NoticeTitle/NoticeTitlePlugin.php index 87e07d5a63..2dbaa35672 100644 --- a/plugins/NoticeTitle/NoticeTitlePlugin.php +++ b/plugins/NoticeTitle/NoticeTitlePlugin.php @@ -124,13 +124,13 @@ class NoticeTitlePlugin extends Plugin * Validate notice title before saving * * @param Action $action NewNoticeAction being executed - * @param integer &$authorId Author ID + * @param Profile $author Profile object for the author of the notice being saved * @param string &$text Text of the notice * @param array &$options Options array * * @return boolean hook value */ - function onStartNoticeSaveWeb($action, &$authorId, &$text, &$options) + function onStartNoticeSaveWeb(Action $action, Profile $author, &$content, array &$options) { $title = $action->trimmed('notice_title'); if (!empty($title) && $this->isAllowedRichEdit()) { @@ -154,7 +154,7 @@ class NoticeTitlePlugin extends Plugin * * @return boolean hook value */ - function onEndNoticeSaveWeb($action, $notice) + function onEndNoticeSaveWeb(Action $action, Notice $notice) { if (!empty($notice)) { @@ -203,7 +203,7 @@ class NoticeTitlePlugin extends Plugin * * @return boolean hook value */ - function onEndRssEntryArray($notice, &$entry) + function onEndRssEntryArray(Notice $notice, array &$entry) { $title = Notice_title::fromNotice($notice);