replace print_hidden with hidden_tag

master
Andrew Dolgov 4 years ago
parent 26d6b84a57
commit 1f43d7916c

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

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

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

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

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

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

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

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

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

Loading…
Cancel
Save