From 3f8df56044612905e3d2edc0d990eb9946126684 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Fri, 18 Feb 2011 11:55:11 +0000 Subject: [PATCH] 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". --- includes/OutputPage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' ) ) { -- 2.20.1