mirror of
https://github.com/friendica/friendica
synced 2025-04-25 16:30:10 +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
|
@ -14,6 +14,7 @@ use Friendica\Core\Addon;
|
|||
use Friendica\Core\Cache;
|
||||
use Friendica\Core\Config;
|
||||
use Friendica\Core\L10n;
|
||||
use Friendica\Core\Renderer;
|
||||
use Friendica\Core\System;
|
||||
use Friendica\Database\DBA;
|
||||
use Friendica\Util\DateTimeFormat;
|
||||
|
@ -179,7 +180,7 @@ class OEmbed
|
|||
$th = 120;
|
||||
$tw = $th * $tr;
|
||||
$tpl = get_markup_template('oembed_video.tpl');
|
||||
$ret .= replace_macros($tpl, [
|
||||
$ret .= Renderer::replaceMacros($tpl, [
|
||||
'$baseurl' => System::baseUrl(),
|
||||
'$embedurl' => $oembed->embed_url,
|
||||
'$escapedhtml' => base64_encode($oembed->html),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue