diff options
| author | Greg Roach <fisharebest@gmail.com> | 2017-07-11 11:52:56 +0100 |
|---|---|---|
| committer | Greg Roach <fisharebest@gmail.com> | 2017-07-11 11:53:09 +0100 |
| commit | cc5ab399cc3c8f78158c8e3027cb0ecf038648dc (patch) | |
| tree | 54da92556607e9cae21cfbd440ed136b383b0b94 /app/Module/UserJournalModule.php | |
| parent | 1c2ce4bb435dee3d5672951797a6a66711c25938 (diff) | |
| download | webtrees-cc5ab399cc3c8f78158c8e3027cb0ecf038648dc.tar.gz webtrees-cc5ab399cc3c8f78158c8e3027cb0ecf038648dc.tar.bz2 webtrees-cc5ab399cc3c8f78158c8e3027cb0ecf038648dc.zip | |
Prepare to remove class Filter
Diffstat (limited to 'app/Module/UserJournalModule.php')
| -rw-r--r-- | app/Module/UserJournalModule.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/Module/UserJournalModule.php b/app/Module/UserJournalModule.php index 178d27a22b..08a35316d4 100644 --- a/app/Module/UserJournalModule.php +++ b/app/Module/UserJournalModule.php @@ -19,6 +19,7 @@ use Fisharebest\Webtrees\Auth; use Fisharebest\Webtrees\Database; use Fisharebest\Webtrees\Filter; use Fisharebest\Webtrees\Functions\FunctionsDate; +use Fisharebest\Webtrees\Html; use Fisharebest\Webtrees\I18N; use Fisharebest\Webtrees\Theme; @@ -86,7 +87,7 @@ class UserJournalModule extends AbstractModule implements ModuleBlockInterface { foreach ($articles as $article) { $content .= '<div class="journal_box">'; - $content .= '<div class="news_title">' . Filter::escapeHtml($article->subject) . '</div>'; + $content .= '<div class="news_title">' . Html::escape($article->subject) . '</div>'; $content .= '<div class="news_date">' . FunctionsDate::formatTimestamp($article->updated) . '</div>'; if ($article->body == strip_tags($article->body)) { $article->body = nl2br($article->body, false); @@ -94,7 +95,7 @@ class UserJournalModule extends AbstractModule implements ModuleBlockInterface { $content .= $article->body; $content .= '<a href="editnews.php?news_id=' . $article->news_id . '&ctype=user&ged=' . $WT_TREE->getNameHtml() . '">' . I18N::translate('Edit') . '</a>'; $content .= ' | '; - $content .= '<a href="editnews.php?action=delete&news_id=' . $article->news_id . '&ctype=user&ged=' . $WT_TREE->getNameHtml() . '" onclick="return confirm(\'' . I18N::translate('Are you sure you want to delete ā%sā?', Filter::escapeHtml($article->subject)) . "');\">" . I18N::translate('Delete') . '</a><br>'; + $content .= '<a href="editnews.php?action=delete&news_id=' . $article->news_id . '&ctype=user&ged=' . $WT_TREE->getNameHtml() . '" onclick="return confirm(\'' . I18N::translate('Are you sure you want to delete ā%sā?', Html::escape($article->subject)) . "');\">" . I18N::translate('Delete') . '</a><br>'; $content .= '</div><br>'; } |
