mirror of
https://github.com/friendica/friendica
synced 2025-04-27 10: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
|
@ -5,6 +5,7 @@
|
|||
use Friendica\App;
|
||||
use Friendica\Core\Config;
|
||||
use Friendica\Core\L10n;
|
||||
use Friendica\Core\Renderer;
|
||||
use Friendica\Core\System;
|
||||
use Friendica\Database\DBA;
|
||||
use Friendica\Module\Login;
|
||||
|
@ -82,7 +83,7 @@ function api_content(App $a)
|
|||
}
|
||||
|
||||
$tpl = get_markup_template("oauth_authorize_done.tpl");
|
||||
$o = replace_macros($tpl, [
|
||||
$o = Renderer::replaceMacros($tpl, [
|
||||
'$title' => L10n::t('Authorize application connection'),
|
||||
'$info' => L10n::t('Return to your app and insert this Securty Code:'),
|
||||
'$code' => $verifier,
|
||||
|
@ -104,7 +105,7 @@ function api_content(App $a)
|
|||
}
|
||||
|
||||
$tpl = get_markup_template('oauth_authorize.tpl');
|
||||
$o = replace_macros($tpl, [
|
||||
$o = Renderer::replaceMacros($tpl, [
|
||||
'$title' => L10n::t('Authorize application connection'),
|
||||
'$app' => $app,
|
||||
'$authorize' => L10n::t('Do you want to authorize this application to access your posts and contacts, and/or create new posts for you?'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue