]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Slightly better indication that notice section shows incomplete text
authorMikael Nordfeldth <mmn@hethane.se>
Mon, 11 Nov 2013 12:18:23 +0000 (13:18 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Mon, 11 Nov 2013 12:18:23 +0000 (13:18 +0100)
Must still be improved somehow.

lib/noticesection.php

index 35423e4f9bd35728319ce7c8b320b1ff78637ddc..4a4eac344a3b95e955e5bcd22fa26eeb19113a50 100644 (file)
@@ -101,7 +101,7 @@ class NoticeSection extends Section
 
         $this->out->elementStart('p', 'entry-content');
         $this->out->text(mb_strlen($notice->content) > $this->maxchars
-            ? mb_substr($notice->content, 0, $this->maxchars) . ''
+            ? mb_substr($notice->content, 0, $this->maxchars) . '[…]'
             : $notice->content);
         $this->out->elementEnd('p');