Merge branch 'bugfix/psr-4-renames' into 'master'

Fix class names in some more places.

See merge request tt-rss/tt-rss!10
This commit is contained in:
Andrew Dolgov 2023-10-26 15:05:07 +00:00
commit 2af5f73480
7 changed files with 7 additions and 7 deletions

View File

@ -750,7 +750,7 @@ class Feeds extends Handler_Protected {
<h1>Feed Debugger: <?= "$feed_id: " . $this->_get_title($feed_id) ?></h1> <h1>Feed Debugger: <?= "$feed_id: " . $this->_get_title($feed_id) ?></h1>
<div class="content"> <div class="content">
<form method="post" action="" dojoType="dijit.form.Form"> <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("method", "updatedebugger") ?>
<?= \Controls\hidden_tag("csrf_token", $csrf_token) ?> <?= \Controls\hidden_tag("csrf_token", $csrf_token) ?>
<?= \Controls\hidden_tag("action", "do_update") ?> <?= \Controls\hidden_tag("action", "do_update") ?>

View File

@ -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 * @param array<int|string, mixed> $params
*/ */

View File

@ -29,7 +29,7 @@
} }
function pluginhandler_tags(\Plugin $plugin, string $method): string { 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("plugin", strtolower(get_class($plugin))) .
hidden_tag("method", $method); hidden_tag("method", $method);
} }

View File

@ -352,7 +352,7 @@ const Article = {
title: __("Article tags"), title: __("Article tags"),
content: ` content: `
${App.FormFields.hidden_tag("id", id.toString())} ${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")} ${App.FormFields.hidden_tag("method", "setArticleTags")}
<header class='horizontal'> <header class='horizontal'>

View File

@ -35,7 +35,7 @@ const CommonDialogs = {
content: ` content: `
<form onsubmit='return false'> <form onsubmit='return false'>
${App.FormFields.hidden_tag("op", "feeds")} ${App.FormFields.hidden_tag("op", "Feeds")}
${App.FormFields.hidden_tag("method", "add")} ${App.FormFields.hidden_tag("method", "add")}
<div id='fadd_error_message' style='display : none' class='alert alert-danger'></div> <div id='fadd_error_message' style='display : none' class='alert alert-danger'></div>

View File

@ -280,7 +280,7 @@ const Helpers = {
${__("You can override colors, fonts and layout of your currently selected theme with custom CSS declarations here.")} ${__("You can override colors, fonts and layout of your currently selected theme with custom CSS declarations here.")}
</div> </div>
${App.FormFields.hidden_tag('op', 'rpc')} ${App.FormFields.hidden_tag('op', 'RPC')}
${App.FormFields.hidden_tag('method', 'setpref')} ${App.FormFields.hidden_tag('method', 'setpref')}
${App.FormFields.hidden_tag('key', 'USER_STYLESHEET')} ${App.FormFields.hidden_tag('key', 'USER_STYLESHEET')}

View File

@ -10,7 +10,7 @@ Plugins.Psql_Trgm = {
const tmph = dojo.connect(dialog, "onShow", null, function (/* e */) { const tmph = dojo.connect(dialog, "onShow", null, function (/* e */) {
dojo.disconnect(tmph); 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); dialog.attr('content', reply);
}); });
}); });