mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #55660
[Bug 1846102] [NEW] Multibyte message subject on Inbox block corrupted
Public bug reported:
Multibyte message subjects on Inbox block are corrupted by Smarty function 'truncate'.
So it's better for us to use the Mahara function str_shorten_html() instead as below.
File to modify:
theme/raw/plugintype/blocktype/inbox/templates/inboxmr.tpl
Line:
25
[ Before ]
<span class="sr-only">{$i->strtype}</span>
{$i->subject|truncate:50}
[ After ]
<span class="sr-only">{$i->strtype}</span>
{$i->subject|str_shorten_html:50:true|safe}
** Affects: mahara
Importance: High
Status: New
** Tags: smarty
** Attachment added: "corrupted multibyte (Japanese) message subject"
https://bugs.launchpad.net/bugs/1846102/+attachment/5292935/+files/inbox_subject_corruption.png
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1846102
Title:
Multibyte message subject on Inbox block corrupted
Status in Mahara:
New
Bug description:
Multibyte message subjects on Inbox block are corrupted by Smarty function 'truncate'.
So it's better for us to use the Mahara function str_shorten_html() instead as below.
File to modify:
theme/raw/plugintype/blocktype/inbox/templates/inboxmr.tpl
Line:
25
[ Before ]
<span class="sr-only">{$i->strtype}</span>
{$i->subject|truncate:50}
[ After ]
<span class="sr-only">{$i->strtype}</span>
{$i->subject|str_shorten_html:50:true|safe}
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1846102/+subscriptions
Follow ups