From af4b3e7df06e50e956e9fda281935a7483f5673a Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 16 Feb 2021 15:05:32 +0300 Subject: login form: use control helpers --- include/controls.php | 4 ++-- include/login_form.php | 15 ++++++++------- 2 files changed, 10 insertions(+), 9 deletions(-) (limited to 'include') diff --git a/include/controls.php b/include/controls.php index 78f02233f..b351a9449 100755 --- a/include/controls.php +++ b/include/controls.php @@ -64,12 +64,12 @@ name=\"".htmlspecialchars($name)."\" value=\"".htmlspecialchars($value)."\">"; } - function checkbox_tag(string $name, bool $checked, string $value = "", string $attributes = "", string $id = "") { + function checkbox_tag(string $name, bool $checked = false, string $value = "", string $attributes = "", string $id = "") { $is_checked = $checked ? "checked" : ""; $value_str = $value ? "value=\"".htmlspecialchars($value)."\"" : ""; return ""; + $value_str $is_checked $attributes id=\"".htmlspecialchars($id)."\">"; } function select_feeds_cats(string $name, int $default_id = null, string $attributes = "", diff --git a/include/login_form.php b/include/login_form.php index 798efa624..e4eb52a51 100755 --- a/include/login_form.php +++ b/include/login_form.php @@ -141,8 +141,8 @@
-
@@ -153,9 +153,10 @@
- +
@@ -166,7 +167,7 @@
@@ -177,7 +178,7 @@
- +
-- cgit v1.2.3