From a8c1f4b9b2489c088dcb4b97303c90fd75aa7806 Mon Sep 17 00:00:00 2001 From: Alex Monk Date: Wed, 8 May 2013 19:17:20 +0100 Subject: [PATCH] Display "Printable version" links in toolbox on special pages Bug: 48234 Change-Id: Ib8864127621c5aaca1df22083a774f352984c7d3 --- includes/SkinTemplate.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/includes/SkinTemplate.php b/includes/SkinTemplate.php index e53d424f9e..739be06ec3 100644 --- a/includes/SkinTemplate.php +++ b/includes/SkinTemplate.php @@ -1187,15 +1187,15 @@ class SkinTemplate extends Skin { // A print stylesheet is attached to all pages, but nobody ever // figures that out. :) Add a link... - if ( $out->isArticle() ) { - if ( !$out->isPrintable() ) { - $nav_urls['print'] = array( - 'text' => $this->msg( 'printableversion' )->text(), - 'href' => $this->getTitle()->getLocalURL( - $request->appendQueryValue( 'printable', 'yes', true ) ) - ); - } + if ( !$out->isPrintable() && ( $out->isArticle() || $this->getTitle()->isSpecialPage() ) ) { + $nav_urls['print'] = array( + 'text' => $this->msg( 'printableversion' )->text(), + 'href' => $this->getTitle()->getLocalURL( + $request->appendQueryValue( 'printable', 'yes', true ) ) + ); + } + if ( $out->isArticle() ) { // Also add a "permalink" while we're at it $revid = $this->getRevisionId(); if ( $revid ) { -- 2.20.1