replace macros
implement new replaceMacros function
This commit is contained in:
parent
f6c86649c2
commit
91facd2d0a
91 changed files with 335 additions and 249 deletions
|
@ -7,6 +7,7 @@ use Friendica\App;
|
|||
use Friendica\Content\ContactSelector;
|
||||
use Friendica\Content\Widget;
|
||||
use Friendica\Core\L10n;
|
||||
use Friendica\Core\Renderer;
|
||||
use Friendica\Core\System;
|
||||
use Friendica\Database\DBA;
|
||||
use Friendica\Model\Contact;
|
||||
|
@ -33,7 +34,7 @@ function suggest_init(App $a)
|
|||
}
|
||||
}
|
||||
|
||||
$a->page['content'] = replace_macros(get_markup_template('confirm.tpl'), [
|
||||
$a->page['content'] = Renderer::replaceMacros(get_markup_template('confirm.tpl'), [
|
||||
'$method' => 'get',
|
||||
'$message' => L10n::t('Do you really want to delete this suggestion?'),
|
||||
'$extra_inputs' => $inputs,
|
||||
|
@ -113,7 +114,7 @@ function suggest_content(App $a)
|
|||
|
||||
$tpl = get_markup_template('viewcontact_template.tpl');
|
||||
|
||||
$o .= replace_macros($tpl,[
|
||||
$o .= Renderer::replaceMacros($tpl,[
|
||||
'$title' => L10n::t('Friend Suggestions'),
|
||||
'$contacts' => $entries,
|
||||
]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue