X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Flostpass.php;h=e7e1a33bd02b22d72c90d621cd2d50656638f127;hb=829e8ca9469159aeb0a999f3b9701bdfacab1943;hp=455a9b1e2eed697580cd17fb8e4dcfe2b53da43d;hpb=5eaa5951a1b19b985017b5db20f3b1abf464a1ef;p=friendica.git diff --git a/mod/lostpass.php b/mod/lostpass.php index 455a9b1e2e..e7e1a33bd0 100644 --- a/mod/lostpass.php +++ b/mod/lostpass.php @@ -1,5 +1,8 @@ config['sitename']; - $resetlink = App::get_baseurl() . '/lostpass?verify=' . $new_password; + $resetlink = System::baseUrl() . '/lostpass?verify=' . $new_password; $preamble = deindent(t(' Dear %1$s, @@ -63,16 +66,16 @@ function lostpass_post(App $a) { Login Name: %3$s')); $preamble = sprintf($preamble, $username, $sitename); - $body = sprintf($body, $resetlink, App::get_baseurl(), $email); + $body = sprintf($body, $resetlink, System::baseUrl(), $email); notification(array( - 'type' => "SYSTEM_EMAIL", + 'type' => SYSTEM_EMAIL, 'to_email' => $email, 'subject'=> sprintf( t('Password reset requested at %s'),$sitename), 'preamble'=> $preamble, 'body' => $body)); - goaway(z_root()); + goaway(System::baseUrl()); } @@ -111,10 +114,10 @@ function lostpass_content(App $a) { '$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' => '' . t('click here to login') . '.', + '$lbl5' => '' . t('click here to login') . '.', '$lbl6' => t('Your password may be changed from the Settings page after successful login.'), '$newpass' => $new_password, - '$baseurl' => App::get_baseurl() + '$baseurl' => System::baseUrl() )); info("Your password has been reset." . EOL); @@ -139,10 +142,10 @@ function lostpass_content(App $a) { ')); $preamble = sprintf($preamble, $username); - $body = sprintf($body, App::get_baseurl(), $email, $new_password); + $body = sprintf($body, System::baseUrl(), $email, $new_password); notification(array( - 'type' => "SYSTEM_EMAIL", + 'type' => SYSTEM_EMAIL, 'to_email' => $email, 'subject'=> sprintf( t('Your password has been changed at %s'),$sitename), 'preamble'=> $preamble,