From ac764d0e9c90bf7683981288e9cd6224b86e924a Mon Sep 17 00:00:00 2001 From: Zarek Jenkinson Date: Wed, 29 May 2013 23:00:01 +1200 Subject: [PATCH] protect reset_image_ids & move protected checkbox --- ext/admin/theme.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/admin/theme.php b/ext/admin/theme.php index f7d2ddb2..b354a7db 100644 --- a/ext/admin/theme.php +++ b/ext/admin/theme.php @@ -16,8 +16,8 @@ class AdminPageTheme extends Themelet { $c_protected = $protected ? " protected" : ""; $html = make_form(make_link("admin/$action"), "POST", false, false, false, "admin$c_protected"); if($protected) { - $html .= ""; $html .= ""; + $html .= ""; } else { $html .= ""; @@ -41,7 +41,7 @@ class AdminPageTheme extends Themelet { $html .= $this->button("Recount tag use", "recount_tag_user", false); $html .= $this->button("Download all images", "image_dump", false); $html .= $this->button("Download database contents", "database_dump", false); - $html .= $this->button("Reset image IDs", "reset_image_ids", false); + $html .= $this->button("Reset image IDs", "reset_image_ids", true); $page->add_block(new Block("Misc Admin Tools", $html)); $html = make_form(make_link("admin/set_tag_case"), "POST");