Merge "ChangesList: Use context language for LogPage::getName() message"
[lhc/web/wiklou.git] / includes / actions / PurgeAction.php
index 7e77846..508bbe0 100644 (file)
@@ -68,9 +68,9 @@ class PurgeAction extends FormAction {
                if ( $user->isAllowed( 'purge' ) ) {
                        $this->redirectParams = wfArrayToCgi( array_diff_key(
                                $this->getRequest()->getQueryValues(),
-                               array( 'title' => null, 'action' => null )
+                               [ 'title' => null, 'action' => null ]
                        ) );
-                       if ( $this->onSubmit( array() ) ) {
+                       if ( $this->onSubmit( [] ) ) {
                                $this->onSuccess();
                        }
                } else {
@@ -97,4 +97,8 @@ class PurgeAction extends FormAction {
        public function onSuccess() {
                $this->getOutput()->redirect( $this->getTitle()->getFullURL( $this->redirectParams ) );
        }
+
+       public function doesWrites() {
+               return true;
+       }
 }