Disable the expiry field in Protection for users without the requisite permission.
authorAndrew Garrett <werdna@users.mediawiki.org>
Tue, 23 Jan 2007 07:57:41 +0000 (07:57 +0000)
committerAndrew Garrett <werdna@users.mediawiki.org>
Tue, 23 Jan 2007 07:57:41 +0000 (07:57 +0000)
includes/ProtectionForm.php

index 2d9d31b..4cd7dd4 100644 (file)
@@ -296,7 +296,7 @@ class ProtectionForm {
                                'size' => 60,
                                'name' => $id,
                                'id' => $id,
-                               'value' => $this->mExpiry ) );
+                               'value' => $this->mExpiry ) + $this->disabledAttrib );
                $ci .= "</td></tr>";
 
                return $ci;