summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwn_ <[email protected]>2023-10-26 15:01:43 +0000
committerwn_ <[email protected]>2023-10-26 15:01:43 +0000
commitc7e1caf223f51a08b275e47d9e6f79284ba375dd (patch)
treee5fb0fab78868612c14eb064bbc73d4ba07025a3
parent8c9c69921f8552e49291df9e2503709aaa564270 (diff)
Fix class names in some more places.
Related to the PSR-4 move via 865ecc87963dc3b26e66296616eef2a1cc41ac3f
-rw-r--r--classes/Feeds.php2
-rw-r--r--classes/PluginHost.php2
-rwxr-xr-xinclude/controls.php2
-rw-r--r--js/Article.js2
-rw-r--r--js/CommonDialogs.js2
-rw-r--r--js/PrefHelpers.js2
-rw-r--r--plugins/af_psql_trgm/init.js2
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 {
<h1>Feed Debugger: <?= "$feed_id: " . $this->_get_title($feed_id) ?></h1>
<div class="content">
<form method="post" action="" dojoType="dijit.form.Form">
- <?= \Controls\hidden_tag("op", "feeds") ?>
+ <?= \Controls\hidden_tag("op", "Feeds") ?>
<?= \Controls\hidden_tag("method", "updatedebugger") ?>
<?= \Controls\hidden_tag("csrf_token", $csrf_token) ?>
<?= \Controls\hidden_tag("action", "do_update") ?>
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<int|string, mixed> $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")}
<header class='horizontal'>
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: `
<form onsubmit='return false'>
- ${App.FormFields.hidden_tag("op", "feeds")}
+ ${App.FormFields.hidden_tag("op", "Feeds")}
${App.FormFields.hidden_tag("method", "add")}
<div id='fadd_error_message' style='display : none' class='alert alert-danger'></div>
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.")}
</div>
- ${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);
});
});