From: Alexandre Emsenhuber Date: Fri, 18 Feb 2011 12:25:22 +0000 (+0000) Subject: * Use appendQueryValue() instead of appendQuery() so that if e.g. printable=no is... X-Git-Tag: 1.31.0-rc.0~31927 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/%7B%7B%20url_for%28%27admin_users%27%29%20%7D%7D?a=commitdiff_plain;h=683fb93ee2cc5f63fb52a6fedb3fae1e9cdff8e6;p=lhc%2Fweb%2Fwiklou.git * Use appendQueryValue() instead of appendQuery() so that if e.g. printable=no is already present in the URL, it doesn't become printable=no&printable=yes * Call getLocalURL() on the local Title object instead of $wgTitle in WebRequest --- diff --git a/includes/SkinTemplate.php b/includes/SkinTemplate.php index 641778455b..4f60d55019 100644 --- a/includes/SkinTemplate.php +++ b/includes/SkinTemplate.php @@ -1157,7 +1157,7 @@ class SkinTemplate extends Skin { if ( !$out->isPrintable() ) { $nav_urls['print'] = array( 'text' => wfMsg( 'printableversion' ), - 'href' => $wgRequest->appendQuery( 'printable=yes' ) + 'href' => $this->mTitle->getLocalURL( $wgRequest->appendQueryValue( 'printable', 'yes', true ) ) ); }