From: Alexandre Emsenhuber Date: Fri, 18 Feb 2011 11:55:11 +0000 (+0000) Subject: We have already have a printable flag in the OutputPage object, so use it. X-Git-Tag: 1.31.0-rc.0~31928 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmembres/Category:Foo?a=commitdiff_plain;h=3f8df56044612905e3d2edc0d990eb9946126684;p=lhc%2Fweb%2Fwiklou.git We have already have a printable flag in the OutputPage object, so use it. This was causing to have the printable version for every non-empty version of the printable paramter, instead of only for "yes". --- diff --git a/includes/OutputPage.php b/includes/OutputPage.php index f03e0e96d0..1ee62c09c7 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -2411,7 +2411,7 @@ class OutputPage { 'only' => $only, ); // Propagate printable and handheld parameters if present - if ( $wgRequest->getBool( 'printable' ) ) { + if ( $this->isPrintable() ) { $query['printable'] = 1; } if ( $wgRequest->getBool( 'handheld' ) ) {