From 93fbe8dccec7b14c024259f83543bde4a95be298 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sun, 29 Jan 2023 14:10:25 +0100 Subject: feat(PHP8.2): Fix deprecated string interpolation Signed-off-by: Florian Pritz --- application/controllers/User.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'application/controllers') diff --git a/application/controllers/User.php b/application/controllers/User.php index 3b5c3b7e0..43b5040b3 100644 --- a/application/controllers/User.php +++ b/application/controllers/User.php @@ -265,10 +265,10 @@ class User extends MY_Controller { $this->email->to($useremail); $this->email->subject("FileBin account deleted"); $this->email->message("" - ."Your FileBin account '${username}' at ".site_url()."\n" + ."Your FileBin account '{$username}' at ".site_url()."\n" ."has been permemently deleted.\n" ."\n" - ."The request has been sent from the IP address '${_SERVER["REMOTE_ADDR"]}'\n" + ."The request has been sent from the IP address '{$_SERVER["REMOTE_ADDR"]}'\n" ."and was confirmed with your password.\n" ."\n" ."Thank you for using FileBin!\n" @@ -348,8 +348,8 @@ class User extends MY_Controller { $this->email->to($userinfo["email"]); $this->email->subject("FileBin password reset"); $this->email->message("" - ."Someone requested a password reset for the account '${userinfo["username"]}'\n" - ."from the IP address '${_SERVER["REMOTE_ADDR"]}'.\n" + ."Someone requested a password reset for the account '{$userinfo["username"]}'\n" + ."from the IP address '{$_SERVER["REMOTE_ADDR"]}'.\n" ."\n" ."Please follow this link to reset your password:\n" .site_url("user/reset_password/$key") @@ -553,7 +553,7 @@ class User extends MY_Controller { $this->email->to($email['email']); $this->email->subject("FileBin email change confirmation"); $this->email->message("" - ."A request has been sent to change the email address of account '${old["username"]}'\n" + ."A request has been sent to change the email address of account '{$old["username"]}'\n" ."from ".$old['email']." to $value.\n" ."\n" ."Please follow this link to CONFIRM the change:\n" -- cgit v1.2.3-24-g4f1b