Index: trunk/phase3/includes/SkinTemplate.php |
— | — | @@ -256,7 +256,7 @@ |
257 | 257 | $tpl->setRef( 'skinname', $this->skinname ); |
258 | 258 | $tpl->set( 'skinclass', get_class( $this ) ); |
259 | 259 | $tpl->setRef( 'stylename', $this->stylename ); |
260 | | - $tpl->set( 'printable', $wgRequest->getBool( 'printable' ) ); |
| 260 | + $tpl->set( 'printable', $out->isPrintable() ); |
261 | 261 | $tpl->set( 'handheld', $wgRequest->getBool( 'handheld' ) ); |
262 | 262 | $tpl->setRef( 'loggedin', $this->loggedin ); |
263 | 263 | $tpl->set( 'notspecialpage', $this->mTitle->getNamespace() != NS_SPECIAL ); |
— | — | @@ -904,7 +904,7 @@ |
905 | 905 | // A print stylesheet is attached to all pages, but nobody ever |
906 | 906 | // figures that out. :) Add a link... |
907 | 907 | if( $this->iscontent && ( $action == 'view' || $action == 'purge' ) ) { |
908 | | - if ( !$wgRequest->getBool( 'printable' ) ) { |
| 908 | + if ( !$wgOut->isPrintable() ) { |
909 | 909 | $nav_urls['print'] = array( |
910 | 910 | 'text' => wfMsg( 'printableversion' ), |
911 | 911 | 'href' => $wgRequest->appendQuery( 'printable=yes' ) |
Index: trunk/phase3/includes/Skin.php |
— | — | @@ -1104,7 +1104,7 @@ |
1105 | 1105 | |
1106 | 1106 | $s = array(); |
1107 | 1107 | |
1108 | | - if ( !$wgRequest->getBool( 'printable' ) ) { |
| 1108 | + if ( !$wgOut->isPrintable() ) { |
1109 | 1109 | $printurl = $wgRequest->escapeAppendQuery( 'printable=yes' ); |
1110 | 1110 | $s[] = "<a href=\"$printurl\" rel=\"alternate\">" . wfMsg( 'printableversion' ) . '</a>'; |
1111 | 1111 | } |