mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-07 22:17:17 +02: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
|
@ -6,6 +6,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\Model\User;
|
||||
|
@ -116,7 +117,7 @@ function lostpass_content(App $a)
|
|||
function lostpass_form()
|
||||
{
|
||||
$tpl = get_markup_template('lostpass.tpl');
|
||||
$o = replace_macros($tpl, [
|
||||
$o = Renderer::replaceMacros($tpl, [
|
||||
'$title' => L10n::t('Forgot your Password?'),
|
||||
'$desc' => L10n::t('Enter your email address and submit to have your password reset. Then check your email for further instructions.'),
|
||||
'$name' => L10n::t('Nickname or Email: '),
|
||||
|
@ -135,7 +136,7 @@ function lostpass_generate_password($user)
|
|||
$result = User::updatePassword($user['uid'], $new_password);
|
||||
if (DBA::isResult($result)) {
|
||||
$tpl = get_markup_template('pwdreset.tpl');
|
||||
$o .= replace_macros($tpl, [
|
||||
$o .= Renderer::replaceMacros($tpl, [
|
||||
'$lbl1' => L10n::t('Password Reset'),
|
||||
'$lbl2' => L10n::t('Your password has been reset as requested.'),
|
||||
'$lbl3' => L10n::t('Your new password is'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue