# Set title from request parameters
$wgTitle = $mediaWiki->checkInitialQueries( $title, $action );
-if( $wgTitle === null ) {
- unset( $wgTitle );
-}
wfProfileOut( 'main-misc-setup' );
exit;
}
-if( $wgUseFileCache && isset( $wgTitle ) ) {
+if( $wgUseFileCache && $wgTitle !== null ) {
wfProfileIn( 'main-try-filecache' );
// Raw pages should handle cache control on their own,
// even when using file cache. This reduces hits from clients.
# Do any stats increment/watchlist stuff
$wgArticle = MediaWiki::articleFromTitle( $wgTitle );
$wgArticle->viewUpdates();
- # Tell $wgOut that output is taken care of
wfProfileOut( 'main-try-filecache' );
$mediaWiki->restInPeace();
exit;
$mediaWiki->finalCleanup( $wgOut );
$mediaWiki->restInPeace();
-