summaryrefslogtreecommitdiff
path: root/classes/pluginhandler.php
diff options
context:
space:
mode:
authorfox <[email protected]>2022-11-12 20:24:52 +0300
committerfox <[email protected]>2022-11-12 20:24:52 +0300
commit9a0dcdd6cc515de343c0625fae57860e1a63885c (patch)
tree56c8818743f7731164bb85f0a3afb0529984ede5 /classes/pluginhandler.php
parent602e8684258062937d7f554ab7889e8e02318c96 (diff)
parentd376cd61426d151aaf59d01aef6f39d230599972 (diff)
Merge pull request 'Address upcoming string interpolation deprecation (PHP 8.2)' (#90) from wn/tt-rss:feature/php82-str-intrp-deprecation into master
Reviewed-on: https://dev.tt-rss.org/tt-rss/tt-rss/pulls/90
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);
}
}