r95982 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r95981‎ | r95982 | r95983 >
Date:13:36, 1 September 2011
Author:catrope
Status:ok (Comments)
Tags:
Comment:
RL2: Fix stupid tautological ternary
Modified paths:
  • /branches/RL2/extensions/Gadgets/api/ApiQueryGadgets.php (modified) (history)

Diff [purge]

Index: branches/RL2/extensions/Gadgets/api/ApiQueryGadgets.php
@@ -33,7 +33,7 @@
3434 public function execute() {
3535 $params = $this->extractRequestParams();
3636 $this->props = array_flip( $params['prop'] );
37 - $this->language = $params['language'] === null ? null : $params['language'];
 37+ $this->language = $params['language'];
3838 $this->categories = isset( $params['categories'] )
3939 ? array_flip( $params['categories'] )
4040 : false;

Comments

#Comment by Krinkle (talk | contribs)   17:53, 3 September 2011

hehe, if it's null you sure are getting null :D

Status & tagging log