Fix for ProtectionForm - make mwProtect-reason retain its value when errors are spat...
authorAndrew Garrett <werdna@users.mediawiki.org>
Fri, 16 Feb 2007 07:21:03 +0000 (07:21 +0000)
committerAndrew Garrett <werdna@users.mediawiki.org>
Fri, 16 Feb 2007 07:21:03 +0000 (07:21 +0000)
includes/ProtectionForm.php

index 4cd7dd4..0b96521 100644 (file)
@@ -273,7 +273,8 @@ class ProtectionForm {
                        wfElement( 'input', array(
                                'size' => 60,
                                'name' => $id,
-                               'id' => $id ) );
+                               'id' => $id,
+                               'value' => $this->mReason ) );
        }
 
        function buildCascadeInput() {