From c7e1caf223f51a08b275e47d9e6f79284ba375dd Mon Sep 17 00:00:00 2001 From: wn_ Date: Thu, 26 Oct 2023 15:01:43 +0000 Subject: [PATCH] Fix class names in some more places. Related to the PSR-4 move via 865ecc87963dc3b26e66296616eef2a1cc41ac3f --- classes/Feeds.php | 2 +- classes/PluginHost.php | 2 +- include/controls.php | 2 +- js/Article.js | 2 +- js/CommonDialogs.js | 2 +- js/PrefHelpers.js | 2 +- plugins/af_psql_trgm/init.js | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/classes/Feeds.php b/classes/Feeds.php index a97ac221f..ac7a58f26 100644 --- a/classes/Feeds.php +++ b/classes/Feeds.php @@ -750,7 +750,7 @@ class Feeds extends Handler_Protected {

Feed Debugger: _get_title($feed_id) ?>

- + diff --git a/classes/PluginHost.php b/classes/PluginHost.php index 7778c008f..cc9f65f19 100644 --- a/classes/PluginHost.php +++ b/classes/PluginHost.php @@ -889,7 +889,7 @@ class PluginHost { } /** - * handled by classes/pluginhandler.php, requires valid session + * handled by classes/PluginHandler.php, requires valid session * * @param array $params */ diff --git a/include/controls.php b/include/controls.php index 1ea019769..2fa797dbc 100755 --- a/include/controls.php +++ b/include/controls.php @@ -29,7 +29,7 @@ } function pluginhandler_tags(\Plugin $plugin, string $method): string { - return hidden_tag("op", "pluginhandler") . + return hidden_tag("op", "PluginHandler") . hidden_tag("plugin", strtolower(get_class($plugin))) . hidden_tag("method", $method); } diff --git a/js/Article.js b/js/Article.js index 85cee6322..694c7e616 100644 --- a/js/Article.js +++ b/js/Article.js @@ -352,7 +352,7 @@ const Article = { title: __("Article tags"), content: ` ${App.FormFields.hidden_tag("id", id.toString())} - ${App.FormFields.hidden_tag("op", "article")} + ${App.FormFields.hidden_tag("op", "Article")} ${App.FormFields.hidden_tag("method", "setArticleTags")}
diff --git a/js/CommonDialogs.js b/js/CommonDialogs.js index e7190e07c..8d4241ef8 100644 --- a/js/CommonDialogs.js +++ b/js/CommonDialogs.js @@ -35,7 +35,7 @@ const CommonDialogs = { content: ` - ${App.FormFields.hidden_tag("op", "feeds")} + ${App.FormFields.hidden_tag("op", "Feeds")} ${App.FormFields.hidden_tag("method", "add")} diff --git a/js/PrefHelpers.js b/js/PrefHelpers.js index 7a4c99340..cf822d987 100644 --- a/js/PrefHelpers.js +++ b/js/PrefHelpers.js @@ -280,7 +280,7 @@ const Helpers = { ${__("You can override colors, fonts and layout of your currently selected theme with custom CSS declarations here.")}
- ${App.FormFields.hidden_tag('op', 'rpc')} + ${App.FormFields.hidden_tag('op', 'RPC')} ${App.FormFields.hidden_tag('method', 'setpref')} ${App.FormFields.hidden_tag('key', 'USER_STYLESHEET')} diff --git a/plugins/af_psql_trgm/init.js b/plugins/af_psql_trgm/init.js index 921272c4b..f3662a389 100644 --- a/plugins/af_psql_trgm/init.js +++ b/plugins/af_psql_trgm/init.js @@ -10,7 +10,7 @@ Plugins.Psql_Trgm = { const tmph = dojo.connect(dialog, "onShow", null, function (/* e */) { dojo.disconnect(tmph); - xhr.post("backend.php", {op: 'pluginhandler', plugin: 'af_psql_trgm', method: 'showrelated', id: id}, (reply) => { + xhr.post("backend.php", {op: 'PluginHandler', plugin: 'af_psql_trgm', method: 'showrelated', id: id}, (reply) => { dialog.attr('content', reply); }); });