wfProfileIn( __METHOD__ );
$output->setTitle( $title );
+ if( $request->getVal( 'printable' ) === 'yes' ) {
+ $output->setPrintable();
+ }
wfRunHooks( 'BeforeInitialize', array( &$title, &$article, &$output, &$user, $request, $this ) );
* @return Title object to be $wgTitle
*/
function checkInitialQueries( $title, $action ) {
- global $wgOut, $wgRequest, $wgContLang;
- if( $wgRequest->getVal( 'printable' ) === 'yes' ) {
- $wgOut->setPrintable();
- }
+ global $wgRequest, $wgContLang;
$curid = $wgRequest->getInt( 'curid' );
if( $wgRequest->getCheck( 'search' ) ) {