From 96fa521776235e81bafcaa94e1688e6707a6d486 Mon Sep 17 00:00:00 2001 From: Jack Phoenix Date: Sat, 16 Mar 2019 01:13:36 +0200 Subject: [PATCH] Code style tweaks Change-Id: I2c602ba642e5692e6c56817aac89be9058bf5bdb --- includes/specials/SpecialUndelete.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/includes/specials/SpecialUndelete.php b/includes/specials/SpecialUndelete.php index 3e560ada45..529c33185e 100644 --- a/includes/specials/SpecialUndelete.php +++ b/includes/specials/SpecialUndelete.php @@ -199,7 +199,7 @@ class SpecialUndelete extends SpecialPage { } else { $this->showFile( $this->mFilename ); } - } elseif ( $this->mAction === "submit" ) { + } elseif ( $this->mAction === 'submit' ) { if ( $this->mRestore ) { $this->undelete(); } elseif ( $this->mRevdel ) { @@ -223,13 +223,14 @@ class SpecialUndelete extends SpecialPage { foreach ( $this->getRequest()->getValues() as $key => $val ) { $matches = []; if ( preg_match( "/^ts(\d{14})$/", $key, $matches ) ) { - $revisions[ $archive->getRevision( $matches[1] )->getId() ] = 1; + $revisions[$archive->getRevision( $matches[1] )->getId()] = 1; } } + $query = [ - "type" => "revision", - "ids" => $revisions, - "target" => $this->mTargetObj->getPrefixedText() + 'type' => 'revision', + 'ids' => $revisions, + 'target' => $this->mTargetObj->getPrefixedText() ]; $url = SpecialPage::getTitleFor( 'Revisiondelete' )->getFullURL( $query ); $this->getOutput()->redirect( $url ); -- 2.20.1