diff options
author | jenkins-bot <jenkins-bot@gerrit.wikimedia.org> | 2013-06-30 17:14:13 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@wikimedia.org> | 2013-06-30 17:14:13 +0000 |
commit | 7ab280ca486e3fef0fd1cbdbc18017d9455f04a1 (patch) | |
tree | 5ac1c53936775cccda34c76ac5d632df1f24ef6d /includes/SkinTemplate.php | |
parent | 417e346059bac2c1a8f1fc1e2aad4dff2a6afd41 (diff) | |
parent | a8c1f4b9b2489c088dcb4b97303c90fd75aa7806 (diff) | |
download | mediawikicore-7ab280ca486e3fef0fd1cbdbc18017d9455f04a1.tar.gz mediawikicore-7ab280ca486e3fef0fd1cbdbc18017d9455f04a1.zip |
Merge "Display "Printable version" links in toolbox on special pages"
Diffstat (limited to 'includes/SkinTemplate.php')
-rw-r--r-- | includes/SkinTemplate.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/includes/SkinTemplate.php b/includes/SkinTemplate.php index 18f410a35c7e..4af6332c9e44 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 ) { |