]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Itemsource.php
More code standard
[friendica.git] / src / Module / Itemsource.php
index bcbd5571825ef386492e631d8a711ae1afbbc45d..4d85ef15ceff2a408a79087e92234daf4f349ae5 100644 (file)
@@ -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
                ]);