Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
ad840aca
Commit
ad840aca
authored
Oct 21, 2015
by
Son Nguyen
Committed by
Gerrit Code Review
Oct 21, 2015
Browse files
Merge "Bug 1507432: Avoid double escaping of messages"
parents
a8ce0379
6a057322
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/blocktype/inbox/lib.php
View file @
ad840aca
...
...
@@ -90,6 +90,11 @@ class PluginBlocktypeInbox extends SystemBlocktype {
if
(
$showmore
=
count
(
$records
)
>
$maxitems
)
{
unset
(
$records
[
$maxitems
]);
}
if
(
$records
)
{
foreach
(
$records
as
&
$r
)
{
$r
->
message
=
format_notification_whitespace
(
$r
->
message
,
$r
->
type
);
}
}
$smartytemplate
=
'blocktype:inbox:inbox.tpl'
;
}
...
...
@@ -98,7 +103,6 @@ class PluginBlocktypeInbox extends SystemBlocktype {
foreach
(
$records
as
&
$r
)
{
$section
=
empty
(
$r
->
plugintype
)
?
'activity'
:
"
{
$r
->
plugintype
}
.
{
$r
->
pluginname
}
"
;
$r
->
strtype
=
get_string
(
'type'
.
$r
->
type
,
$section
);
$r
->
message
=
format_notification_whitespace
(
$r
->
message
,
$r
->
type
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment