From: jenkins-bot Date: Sun, 30 Jun 2013 17:14:13 +0000 (+0000) Subject: Merge "Display "Printable version" links in toolbox on special pages" X-Git-Tag: 1.31.0-rc.0~19315 X-Git-Url: https://git.cyclocoop.org/%20%27.%28%24debut%20%20%20%24par_page%29.%27?a=commitdiff_plain;h=7ab280ca486e3fef0fd1cbdbc18017d9455f04a1;hp=417e346059bac2c1a8f1fc1e2aad4dff2a6afd41;p=lhc%2Fweb%2Fwiklou.git Merge "Display "Printable version" links in toolbox on special pages" --- diff --git a/includes/SkinTemplate.php b/includes/SkinTemplate.php index 18f410a35c..4af6332c9e 100644 --- a/includes/SkinTemplate.php +++ b/includes/SkinTemplate.php @@ -1190,15 +1190,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 ) {