From c4254794169d791deb451a8d993071806a70dc65 Mon Sep 17 00:00:00 2001 From: Bryan Tong Minh Date: Wed, 5 Jan 2011 19:58:09 +0000 Subject: [PATCH] Follow-up r79655: array_diff makes in_array unnecessary --- includes/Title.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' ) ); } -- 2.20.1