replace print_hidden with hidden_tag

This commit is contained in:
Andrew Dolgov 2021-02-16 14:32:06 +03:00
parent 26d6b84a57
commit 1f43d7916c
9 changed files with 38 additions and 38 deletions

View File

@ -524,9 +524,9 @@ class Pref_Feeds extends Handler_Protected {
$title = htmlspecialchars($row["title"]);
print_hidden("id", "$feed_id");
print_hidden("op", "pref-feeds");
print_hidden("method", "editSave");
print \Controls\hidden_tag("id", "$feed_id");
print \Controls\hidden_tag("op", "pref-feeds");
print \Controls\hidden_tag("method", "editSave");
print "<header>".__("Feed")."</header>";
print "<section>";
@ -821,9 +821,9 @@ class Pref_Feeds extends Handler_Protected {
print "<p>";
print_hidden("ids", "$feed_ids");
print_hidden("op", "pref-feeds");
print_hidden("method", "batchEditSave");
print \Controls\hidden_tag("ids", "$feed_ids");
print \Controls\hidden_tag("op", "pref-feeds");
print \Controls\hidden_tag("method", "batchEditSave");
print "<header>".__("Feed")."</header>";
print "<section>";

View File

@ -327,16 +327,16 @@ class Pref_Filters extends Handler_Protected {
print "<form onsubmit='return false'>";
print_hidden("op", "pref-filters");
print \Controls\hidden_tag("op", "pref-filters");
if ($filter_id) {
print_hidden("id", "$filter_id");
print_hidden("method", "editSave");
print \Controls\hidden_tag("id", "$filter_id");
print \Controls\hidden_tag("method", "editSave");
} else {
print_hidden("method", "add");
print \Controls\hidden_tag("method", "add");
}
print_hidden("csrf_token", $_SESSION['csrf_token']);
print \Controls\hidden_tag("csrf_token", $_SESSION['csrf_token']);
print "<header>".__("Caption")."</header>
<section>

View File

@ -218,9 +218,9 @@ class Af_Proxy_Http extends Plugin {
}
</script>";
print_hidden("op", "pluginhandler");
print_hidden("method", "save");
print_hidden("plugin", "af_proxy_http");
print \Controls\hidden_tag("op", "pluginhandler");
print \Controls\hidden_tag("method", "save");
print \Controls\hidden_tag("plugin", "af_proxy_http");
$proxy_all = $this->host->get($this, "proxy_all");
print_checkbox("proxy_all", $proxy_all);

View File

@ -157,9 +157,9 @@ class Af_Psql_Trgm extends Plugin {
}
</script>";
print_hidden("op", "pluginhandler");
print_hidden("method", "save");
print_hidden("plugin", "af_psql_trgm");
print \Controls\hidden_tag("op", "pluginhandler");
print \Controls\hidden_tag("method", "save");
print \Controls\hidden_tag("plugin", "af_psql_trgm");
print "<h2>" . __("Global settings") . "</h2>";

View File

@ -87,9 +87,9 @@ class Af_Readability extends Plugin {
}
</script>";
print_hidden("op", "pluginhandler");
print_hidden("method", "save");
print_hidden("plugin", "af_readability");
print \Controls\hidden_tag("op", "pluginhandler");
print \Controls\hidden_tag("method", "save");
print \Controls\hidden_tag("plugin", "af_readability");
$enable_share_anything = $this->host->get($this, "enable_share_anything");

View File

@ -58,9 +58,9 @@ class Af_RedditImgur extends Plugin {
}
</script>";
print_hidden("op", "pluginhandler");
print_hidden("method", "save");
print_hidden("plugin", "af_redditimgur");
print \Controls\hidden_tag("op", "pluginhandler");
print \Controls\hidden_tag("method", "save");
print \Controls\hidden_tag("plugin", "af_redditimgur");
print "<fieldset class='narrow'>";
print "<label class='checkbox'>";

View File

@ -58,9 +58,9 @@ class Mail extends Plugin {
}
</script>";
print_hidden("op", "pluginhandler");
print_hidden("method", "save");
print_hidden("plugin", "mail");
print \Controls\hidden_tag("op", "pluginhandler");
print \Controls\hidden_tag("method", "save");
print \Controls\hidden_tag("plugin", "mail");
$addresslist = $this->host->get($this, "addresslist");
@ -86,9 +86,9 @@ class Mail extends Plugin {
$ids = explode(",", $_REQUEST['param']);
$ids_qmarks = arr_qmarks($ids);
print_hidden("op", "pluginhandler");
print_hidden("plugin", "mail");
print_hidden("method", "sendEmail");
print \Controls\hidden_tag("op", "pluginhandler");
print \Controls\hidden_tag("plugin", "mail");
print \Controls\hidden_tag("method", "sendEmail");
$sth = $this->pdo->prepare("SELECT email, full_name FROM ttrss_users WHERE
id = ?");
@ -105,8 +105,8 @@ class Mail extends Plugin {
if (!$user_name)
$user_name = $_SESSION['name'];
print_hidden("from_email", "$user_email");
print_hidden("from_name", "$user_name");
print \Controls\hidden_tag("from_email", "$user_email");
print \Controls\hidden_tag("from_name", "$user_name");
$tpl = new Templator();

View File

@ -37,10 +37,10 @@ class Note extends Plugin {
$note = $row['note'];
print_hidden("id", "$param");
print_hidden("op", "pluginhandler");
print_hidden("method", "setNote");
print_hidden("plugin", "note");
print \Controls\hidden_tag("id", "$param");
print \Controls\hidden_tag("op", "pluginhandler");
print \Controls\hidden_tag("method", "setNote");
print \Controls\hidden_tag("plugin", "note");
print "<textarea dojoType='dijit.form.SimpleTextarea'
style='font-size : 12px; width : 98%; height: 100px;'

View File

@ -71,9 +71,9 @@ class NSFW extends Plugin {
}
</script>";
print_hidden("op", "pluginhandler");
print_hidden("method", "save");
print_hidden("plugin", "nsfw");
print \Controls\hidden_tag("op", "pluginhandler");
print \Controls\hidden_tag("method", "save");
print \Controls\hidden_tag("plugin", "nsfw");
print "<table width=\"100%\" class=\"prefPrefsList\">";