From: Jack Phoenix Date: Fri, 15 Mar 2019 23:13:36 +0000 (+0200) Subject: Code style tweaks X-Git-Tag: 1.34.0-rc.0~2501 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=96fa521776235e81bafcaa94e1688e6707a6d486;p=lhc%2Fweb%2Fwiklou.git Code style tweaks Change-Id: I2c602ba642e5692e6c56817aac89be9058bf5bdb --- 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 );