mirror of
https://github.com/friendica/friendica
synced 2025-04-25 06:30:11 +00:00
replace macros
implement new replaceMacros function
This commit is contained in:
parent
f6c86649c2
commit
91facd2d0a
91 changed files with 335 additions and 249 deletions
|
@ -3,6 +3,7 @@
|
|||
namespace Friendica\Module;
|
||||
|
||||
use Friendica\Core\L10n;
|
||||
use Friendica\Core\Renderer;
|
||||
use Friendica\Model;
|
||||
|
||||
/**
|
||||
|
@ -28,7 +29,7 @@ class Itemsource extends \Friendica\BaseModule
|
|||
}
|
||||
|
||||
$tpl = get_markup_template('debug/itemsource.tpl');
|
||||
$o = replace_macros($tpl, [
|
||||
$o = Renderer::replaceMacros($tpl, [
|
||||
'$guid' => ['guid', L10n::t('Item Guid'), htmlentities(defaults($_REQUEST, 'guid', '')), ''],
|
||||
'$source' => $source,
|
||||
'$item_uri' => $item_uri
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue