(bug 6571) Protect page: "Unlock move permissions" appears when "move" is not an...
authorRotem Liss <rotem@users.mediawiki.org>
Thu, 6 Jul 2006 16:09:41 +0000 (16:09 +0000)
committerRotem Liss <rotem@users.mediawiki.org>
Thu, 6 Jul 2006 16:09:41 +0000 (16:09 +0000)
RELEASE-NOTES
includes/ProtectionForm.php

index dfa01fe..ea8a035 100644 (file)
@@ -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 ==
index 2a40a37..70eac03 100644 (file)
@@ -156,7 +156,9 @@ class ProtectionForm {
                        $out .= "</tbody>\n";
                        $out .= "</table>\n";
                        $out .= "</form>\n";
-                       $out .= $this->buildCleanupScript();
+                       if( count( $this->mRestrictions ) > 1 ) {
+                               $out .= $this->buildCleanupScript();
+                       }
                }
 
                return $out;