- if (DBM::is_result($result)) {
- $tpl = get_markup_template('pwdreset.tpl');
- $o .= replace_macros($tpl, [
- '$lbl1' => t('Password Reset'),
- '$lbl2' => t('Your password has been reset as requested.'),
- '$lbl3' => t('Your new password is'),
- '$lbl4' => t('Save or copy your new password - and then'),
- '$lbl5' => '<a href="' . System::baseUrl() . '">' . t('click here to login') . '</a>.',
- '$lbl6' => t('Your password may be changed from the <em>Settings</em> page after successful login.'),
+ if (DBA::isResult($result)) {
+ $tpl = Renderer::getMarkupTemplate('pwdreset.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'),
+ '$lbl4' => L10n::t('Save or copy your new password - and then'),
+ '$lbl5' => '<a href="' . System::baseUrl() . '">' . L10n::t('click here to login') . '</a>.',
+ '$lbl6' => L10n::t('Your password may be changed from the <em>Settings</em> page after successful login.'),