summaryrefslogtreecommitdiff
path: root/classes/pref
diff options
context:
space:
mode:
authorwn_ <[email protected]>2022-11-12 16:20:59 +0000
committerwn_ <[email protected]>2022-11-12 16:20:59 +0000
commitd376cd61426d151aaf59d01aef6f39d230599972 (patch)
tree56c8818743f7731164bb85f0a3afb0529984ede5 /classes/pref
parent602e8684258062937d7f554ab7889e8e02318c96 (diff)
Address upcoming string interpolation deprecation.
https://wiki.php.net/rfc/deprecate_dollar_brace_string_interpolation
Diffstat (limited to 'classes/pref')
-rw-r--r--classes/pref/labels.php2
-rw-r--r--classes/pref/prefs.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/classes/pref/labels.php b/classes/pref/labels.php
index a50a85a66..2e128691e 100644
--- a/classes/pref/labels.php
+++ b/classes/pref/labels.php
@@ -61,7 +61,7 @@ class Pref_Labels extends Handler_Protected {
if ($kind == "fg" || $kind == "bg") {
$sth = $this->pdo->prepare("UPDATE ttrss_labels2 SET
- ${kind}_color = ? WHERE id = ?
+ {$kind}_color = ? WHERE id = ?
AND owner_uid = ?");
$sth->execute([$color, $id, $_SESSION['uid']]);
diff --git a/classes/pref/prefs.php b/classes/pref/prefs.php
index 3285ce200..0c1b90213 100644
--- a/classes/pref/prefs.php
+++ b/classes/pref/prefs.php
@@ -240,7 +240,7 @@ class Pref_Prefs extends Handler_Protected {
$user->full_name = clean($_POST['full_name']);
if ($user->email != $new_email) {
- Logger::log(E_USER_NOTICE, "Email address of user ".$user->login." has been changed to ${new_email}.");
+ Logger::log(E_USER_NOTICE, "Email address of user {$user->login} has been changed to {$new_email}.");
if ($user->email) {
$mailer = new Mailer();