Index: trunk/phase3/includes/Wiki.php |
— | — | @@ -49,6 +49,9 @@ |
50 | 50 | wfProfileIn( __METHOD__ ); |
51 | 51 | |
52 | 52 | $output->setTitle( $title ); |
| 53 | + if( $request->getVal( 'printable' ) === 'yes' ) { |
| 54 | + $output->setPrintable(); |
| 55 | + } |
53 | 56 | |
54 | 57 | wfRunHooks( 'BeforeInitialize', array( &$title, &$article, &$output, &$user, $request, $this ) ); |
55 | 58 | |
— | — | @@ -101,10 +104,7 @@ |
102 | 105 | * @return Title object to be $wgTitle |
103 | 106 | */ |
104 | 107 | function checkInitialQueries( $title, $action ) { |
105 | | - global $wgOut, $wgRequest, $wgContLang; |
106 | | - if( $wgRequest->getVal( 'printable' ) === 'yes' ) { |
107 | | - $wgOut->setPrintable(); |
108 | | - } |
| 108 | + global $wgRequest, $wgContLang; |
109 | 109 | |
110 | 110 | $curid = $wgRequest->getInt( 'curid' ); |
111 | 111 | if( $wgRequest->getCheck( 'search' ) ) { |