]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
HTML5 placeholder for notice input form.
authorMikael Nordfeldth <mmn@hethane.se>
Sun, 1 Feb 2015 20:35:25 +0000 (21:35 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Sun, 1 Feb 2015 20:35:25 +0000 (21:35 +0100)
lib/noticeform.php

index 012619a0ba19a1b38f515c27432947deab0cac2f..e241b5812c6af7b0ab73ea459b2d610921f0c655 100644 (file)
  * @link      http://status.net/
  */
 
-if (!defined('STATUSNET') && !defined('LACONICA')) {
-    exit(1);
-}
-
-require_once INSTALLDIR.'/lib/form.php';
+if (!defined('GNUSOCIAL')) { exit(1); }
 
 /**
  * Form for posting a notice
@@ -209,6 +205,7 @@ class NoticeForm extends Form
             // XXX: vary by defined max size
             $this->out->element('textarea', array('class' => 'notice_data-text',
                                                   'required' => 'required',
+                                                  'placeholder' => _('Share your status...'),
                                                   'cols' => 35,
                                                   'rows' => 4,
                                                   'name' => 'status_textarea'),