summaryrefslogtreecommitdiff
path: root/app/Module/RecentChangesModule.php
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@gmail.com>2017-07-11 11:52:56 +0100
committerGreg Roach <fisharebest@gmail.com>2017-07-11 11:53:09 +0100
commitcc5ab399cc3c8f78158c8e3027cb0ecf038648dc (patch)
tree54da92556607e9cae21cfbd440ed136b383b0b94 /app/Module/RecentChangesModule.php
parent1c2ce4bb435dee3d5672951797a6a66711c25938 (diff)
downloadwebtrees-cc5ab399cc3c8f78158c8e3027cb0ecf038648dc.tar.gz
webtrees-cc5ab399cc3c8f78158c8e3027cb0ecf038648dc.tar.bz2
webtrees-cc5ab399cc3c8f78158c8e3027cb0ecf038648dc.zip
Prepare to remove class Filter
Diffstat (limited to 'app/Module/RecentChangesModule.php')
-rw-r--r--app/Module/RecentChangesModule.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/Module/RecentChangesModule.php b/app/Module/RecentChangesModule.php
index 1ed44f57dc..c2aefe5360 100644
--- a/app/Module/RecentChangesModule.php
+++ b/app/Module/RecentChangesModule.php
@@ -230,7 +230,7 @@ class RecentChangesModule extends AbstractModule implements ModuleBlockInterface
if ($timestamp !== '') {
if ($show_user) {
$html .= /* I18N: [a record was] Changed on <date/time> by <user> */
- I18N::translate('Changed on %1$s by %2$s', $timestamp, Filter::escapeHtml($record->lastChangeUser()));
+ I18N::translate('Changed on %1$s by %2$s', $timestamp, Html::escape($record->lastChangeUser()));
} else {
$html .= /* I18N: [a record was] Changed on <date/time> */
I18N::translate('Changed on %1$s', $timestamp);
@@ -323,7 +323,7 @@ class RecentChangesModule extends AbstractModule implements ModuleBlockInterface
break;
}
$html .= '</td>';
- $html .= '<td data-sort="' . Filter::escapeHtml($record->getSortName()) . '">';
+ $html .= '<td data-sort="' . Html::escape($record->getSortName()) . '">';
$html .= '<a href="' . $record->getHtmlUrl() . '">' . $record->getFullName() . '</a>';
$addname = $record->getAddName();
if ($addname) {
@@ -331,7 +331,7 @@ class RecentChangesModule extends AbstractModule implements ModuleBlockInterface
}
$html .= '</td>';
$html .= '<td data-sort="' . $record->lastChangeTimestamp(true) . '">' . $record->lastChangeTimestamp() . '</td>';
- $html .= '<td>' . Filter::escapeHtml($record->lastChangeUser()) . '</td>';
+ $html .= '<td>' . Html::escape($record->lastChangeUser()) . '</td>';
$html .= '</tr>';
}