From: Alex Monk Date: Wed, 8 May 2013 18:17:20 +0000 (+0100) Subject: Display "Printable version" links in toolbox on special pages X-Git-Tag: 1.31.0-rc.0~19315^2 X-Git-Url: http://git.cyclocoop.org/data/Fool?a=commitdiff_plain;h=a8c1f4b9b2489c088dcb4b97303c90fd75aa7806;p=lhc%2Fweb%2Fwiklou.git Display "Printable version" links in toolbox on special pages Bug: 48234 Change-Id: Ib8864127621c5aaca1df22083a774f352984c7d3 --- 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 ) {