summaryrefslogtreecommitdiff
path: root/classes/pluginhandler.php
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/pluginhandler.php
parent602e8684258062937d7f554ab7889e8e02318c96 (diff)
Address upcoming string interpolation deprecation.
https://wiki.php.net/rfc/deprecate_dollar_brace_string_interpolation
Diffstat (limited to 'classes/pluginhandler.php')
-rw-r--r--classes/pluginhandler.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/classes/pluginhandler.php b/classes/pluginhandler.php
index 5c73920e5..a6f0a4965 100644
--- a/classes/pluginhandler.php
+++ b/classes/pluginhandler.php
@@ -14,15 +14,15 @@ class PluginHandler extends Handler_Protected {
if (validate_csrf($csrf_token) || $plugin->csrf_ignore($method)) {
$plugin->$method();
} else {
- user_error("Rejected ${plugin_name}->${method}(): invalid CSRF token.", E_USER_WARNING);
+ user_error("Rejected {$plugin_name}->{$method}(): invalid CSRF token.", E_USER_WARNING);
print Errors::to_json(Errors::E_UNAUTHORIZED);
}
} else {
- user_error("Rejected ${plugin_name}->${method}(): unknown method.", E_USER_WARNING);
+ user_error("Rejected {$plugin_name}->{$method}(): unknown method.", E_USER_WARNING);
print Errors::to_json(Errors::E_UNKNOWN_METHOD);
}
} else {
- user_error("Rejected ${plugin_name}->${method}(): unknown plugin.", E_USER_WARNING);
+ user_error("Rejected {$plugin_name}->{$method}(): unknown plugin.", E_USER_WARNING);
print Errors::to_json(Errors::E_UNKNOWN_PLUGIN);
}
}