Merge "Http::getProxy() method to get proxy configuration"
[lhc/web/wiklou.git] / includes / specials / SpecialLockdb.php
index a276197..a229fa3 100644 (file)
@@ -33,6 +33,10 @@ class SpecialLockdb extends FormSpecialPage {
                parent::__construct( 'Lockdb', 'siteadmin' );
        }
 
+       public function doesWrites() {
+               return true;
+       }
+
        public function requiresWrite() {
                return false;
        }
@@ -46,18 +50,18 @@ class SpecialLockdb extends FormSpecialPage {
        }
 
        protected function getFormFields() {
-               return array(
-                       'Reason' => array(
+               return [
+                       'Reason' => [
                                'type' => 'textarea',
                                'rows' => 4,
                                'vertical-label' => true,
                                'label-message' => 'enterlockreason',
-                       ),
-                       'Confirm' => array(
+                       ],
+                       'Confirm' => [
                                'type' => 'toggle',
                                'label-message' => 'lockconfirm',
-                       ),
-               );
+                       ],
+               ];
        }
 
        protected function alterForm( HTMLForm $form ) {