From: Bryan Tong Minh Date: Wed, 5 Jan 2011 19:58:09 +0000 (+0000) Subject: Follow-up r79655: array_diff makes in_array unnecessary X-Git-Tag: 1.31.0-rc.0~32797 X-Git-Url: http://git.cyclocoop.org/fichier?a=commitdiff_plain;h=c4254794169d791deb451a8d993071806a70dc65;p=lhc%2Fweb%2Fwiklou.git Follow-up r79655: array_diff makes in_array unnecessary --- diff --git a/includes/Title.php b/includes/Title.php index 9bb7137bd6..ca4c35e875 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -4119,7 +4119,7 @@ class Title { $types = $this->exists() ? $wgRestrictionTypes : array( 'create' ); - if ( $this->getNamespace() != NS_FILE && in_array( 'upload', $types ) ) { + if ( $this->getNamespace() != NS_FILE ) { $types = array_diff( $types, array( 'upload' ) ); }