X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FItemsource.php;h=4d85ef15ceff2a408a79087e92234daf4f349ae5;hb=93082472912afaec56637e542650e715e41567a5;hp=bcbd5571825ef386492e631d8a711ae1afbbc45d;hpb=d0681075bf7b6d1bf998da8ac2c43ce2134f4804;p=friendica.git diff --git a/src/Module/Itemsource.php b/src/Module/Itemsource.php index bcbd557182..4d85ef15ce 100644 --- a/src/Module/Itemsource.php +++ b/src/Module/Itemsource.php @@ -3,6 +3,7 @@ namespace Friendica\Module; use Friendica\Core\L10n; +use Friendica\Core\Renderer; use Friendica\Model; /** @@ -24,12 +25,12 @@ class Itemsource extends \Friendica\BaseModule $conversation = Model\Conversation::getByItemUri($item['uri']); $item_uri = $item['uri']; - $source = htmlspecialchars($conversation['source']); + $source = $conversation['source']; } - $tpl = get_markup_template('debug/itemsource.tpl'); - $o = replace_macros($tpl, [ - '$guid' => ['guid', L10n::t('Item Guid'), htmlentities(defaults($_REQUEST, 'guid', '')), ''], + $tpl = Renderer::getMarkupTemplate('debug/itemsource.tpl'); + $o = Renderer::replaceMacros($tpl, [ + '$guid' => ['guid', L10n::t('Item Guid'), defaults($_REQUEST, 'guid', ''), ''], '$source' => $source, '$item_uri' => $item_uri ]);