From: Sarven Capadisli Date: Sat, 31 Oct 2009 16:16:37 +0000 (+0100) Subject: Using 'form_notice' class instead of 'form' to group both forms X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=48f33f781a91db7178a4f5046885a74dc484e629;p=quix0rs-gnu-social.git Using 'form_notice' class instead of 'form' to group both forms --- diff --git a/lib/messageform.php b/lib/messageform.php index e25ebfa08f..b034be3122 100644 --- a/lib/messageform.php +++ b/lib/messageform.php @@ -80,10 +80,21 @@ class MessageForm extends Form /** * ID of the form * - * @return int ID of the form + * @return string ID of the form */ function id() + { + return 'form_notice-direct'; + } + + /** + * Class of the form + * + * @return string class of the form + */ + + function formClass() { return 'form_notice'; } diff --git a/lib/noticeform.php b/lib/noticeform.php index 9864d15eb0..1be011c182 100644 --- a/lib/noticeform.php +++ b/lib/noticeform.php @@ -105,7 +105,7 @@ class NoticeForm extends Form /** * ID of the form * - * @return int ID of the form + * @return string ID of the form */ function id() @@ -113,6 +113,17 @@ class NoticeForm extends Form return 'form_notice'; } + /** + * Class of the form + * + * @return string class of the form + */ + + function formClass() + { + return 'form_notice'; + } + /** * Action of the form *