From a0a851d4726129ef9bedcf64b1be75257aaa0d62 Mon Sep 17 00:00:00 2001 From: Rotem Liss Date: Thu, 6 Jul 2006 16:09:41 +0000 Subject: [PATCH] (bug 6571) Protect page: "Unlock move permissions" appears when "move" is not an option --- RELEASE-NOTES | 1 + includes/ProtectionForm.php | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index dfa01fe246..ea8a03583d 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -647,6 +647,7 @@ Some default configuration options have changed: Cleans up read-only-mode warning on empty pages and neats up some code. * (bug 6565) Strict JavaScript writing * (bug 6570) Update to Indonesian localisation (id) #26 +* (bug 6571) Protect page: "Unlock move permissions" appears when "move" is not an option == Compatibility == diff --git a/includes/ProtectionForm.php b/includes/ProtectionForm.php index 2a40a37680..70eac031da 100644 --- a/includes/ProtectionForm.php +++ b/includes/ProtectionForm.php @@ -156,7 +156,9 @@ class ProtectionForm { $out .= "\n"; $out .= "\n"; $out .= "\n"; - $out .= $this->buildCleanupScript(); + if( count( $this->mRestrictions ) > 1 ) { + $out .= $this->buildCleanupScript(); + } } return $out; -- 2.20.1