From: Niklas Laxström Date: Tue, 4 Aug 2009 16:31:19 +0000 (+0000) Subject: * Forward get parameters to local interwikis X-Git-Tag: 1.31.0-rc.0~40513 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=a39cf220d9a7531de6f111512251970b8c87e471;p=lhc%2Fweb%2Fwiklou.git * Forward get parameters to local interwikis * Patch by str4nd --- diff --git a/includes/Wiki.php b/includes/Wiki.php index d385f92311..a310151df2 100644 --- a/includes/Wiki.php +++ b/includes/Wiki.php @@ -188,7 +188,9 @@ class MediaWiki { if( $rdfrom = $request->getVal( 'rdfrom' ) ) { $url = $title->getFullURL( 'rdfrom=' . urlencode( $rdfrom ) ); } else { - $url = $title->getFullURL(); + $query = $request->getValues(); + unset( $query['title'] ); + $url = $title->getFullURL( $query ); } /* Check for a redirect loop */ if( !preg_match( '/^' . preg_quote( $this->getVal('Server'), '/' ) . '/', $url ) && $title->isLocal() ) {