* (bug 8875) Show printable link in MonoBook sidebar for locally nonexistent
authorBrion Vibber <brion@users.mediawiki.org>
Mon, 5 Feb 2007 17:44:19 +0000 (17:44 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Mon, 5 Feb 2007 17:44:19 +0000 (17:44 +0000)
  pages; perhaps useful for categories and shared images

RELEASE-NOTES
includes/SkinTemplate.php

index 8ce9248..e57f417 100644 (file)
@@ -173,6 +173,8 @@ lighter making things easier to read.
 * (bug 4347) use MailAddress object for reply-to
 * Add AlphabeticPager abstract class
 * Use faster AlphabeticPager for Special:Categories
+* (bug 8875) Show printable link in MonoBook sidebar for locally nonexistent
+  pages; perhaps useful for categories and shared images
 
 
 == Languages updated ==
index 7e2d57b..ee3daec 100644 (file)
@@ -838,12 +838,10 @@ class SkinTemplate extends Skin {
                // A print stylesheet is attached to all pages, but nobody ever
                // figures that out. :)  Add a link...
                if( $this->iscontent && ($action == '' || $action == 'view' || $action == 'purge' ) ) {
-                       $revid = $wgArticle ? $wgArticle->getLatest() : 0;
-                       if ( !( $revid == 0 )  )
-                               $nav_urls['print'] = array(
-                                       'text' => wfMsg( 'printableversion' ),
-                                       'href' => $wgRequest->appendQuery( 'printable=yes' )
-                               );
+                       $nav_urls['print'] = array(
+                               'text' => wfMsg( 'printableversion' ),
+                               'href' => $wgRequest->appendQuery( 'printable=yes' )
+                       );
 
                        // Also add a "permalink" while we're at it
                        if ( (int)$oldid ) {
@@ -852,6 +850,7 @@ class SkinTemplate extends Skin {
                                        'href' => ''
                                );
                        } else {
+                               $revid = $wgArticle ? $wgArticle->getLatest() : 0;
                                if ( !( $revid == 0 )  )
                                        $nav_urls['permalink'] = array(
                                                'text' => wfMsg( 'permalink' ),