From: Sarven Capadisli Date: Thu, 16 Jul 2009 19:58:43 +0000 (+0000) Subject: Added form_note for notice character count. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9b372f5bb7638d5d9b4e48ae425d921bc8559235;p=quix0rs-gnu-social.git Added form_note for notice character count. http://laconi.ca/trac/ticket/1712 --- diff --git a/lib/messageform.php b/lib/messageform.php index b8878ec1f9..8ea2b36c27 100644 --- a/lib/messageform.php +++ b/lib/messageform.php @@ -140,6 +140,12 @@ class MessageForm extends Form 'rows' => 4, 'name' => 'content'), ($this->content) ? $this->content : ''); + $this->out->elementStart('dl', 'form_note'); + $this->out->element('dt', null, _('Available characters')); + $this->out->element('dd', array('id' => 'notice_text-count'), + '140'); + $this->out->elementEnd('dl'); + } /**