1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 10:05:56 +00:00

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>