From: Philip Tzou Date: Thu, 28 Oct 2010 17:11:21 +0000 (+0000) Subject: Follow up r75617. remove extra brackets. X-Git-Tag: 1.31.0-rc.0~34236 X-Git-Url: http://git.cyclocoop.org/data/%7B%24admin_url%7Dconfig?a=commitdiff_plain;h=2808a0d43f6174576dfbea99abe0d1eb36d97356;p=lhc%2Fweb%2Fwiklou.git Follow up r75617. remove extra brackets. --- diff --git a/includes/Wiki.php b/includes/Wiki.php index 5bbbe9f466..7845f8ff0c 100644 --- a/includes/Wiki.php +++ b/includes/Wiki.php @@ -208,8 +208,8 @@ class MediaWiki { throw new ErrorPageError( 'badtitle', 'badtitletext' ); } // Redirect loops, no title in URL, $wgUsePathInfo URLs, and URLs with a variant - } else if( $action == 'view' && !$request->wasPosted() - && ( ( !$request->getVal( 'title' ) || $title->getPrefixedDBKey() != $request->getText( 'title' ) ) ) + } else if ( $action == 'view' && !$request->wasPosted() + && ( !$request->getVal( 'title' ) || $title->getPrefixedDBKey() != $request->getText( 'title' ) ) && !count( array_diff( array_keys( $request->getValues() ), array( 'action', 'title' ) ) ) ) { $targetUrl = $title->getFullURL();