Index: trunk/phase3/index.php |
— | — | @@ -57,9 +57,6 @@ |
58 | 58 | |
59 | 59 | # Set title from request parameters |
60 | 60 | $wgTitle = $mediaWiki->checkInitialQueries( $title, $action ); |
61 | | -if( $wgTitle === null ) { |
62 | | - unset( $wgTitle ); |
63 | | -} |
64 | 61 | |
65 | 62 | wfProfileOut( 'main-misc-setup' ); |
66 | 63 | |
— | — | @@ -74,7 +71,7 @@ |
75 | 72 | exit; |
76 | 73 | } |
77 | 74 | |
78 | | -if( $wgUseFileCache && isset( $wgTitle ) ) { |
| 75 | +if( $wgUseFileCache && $wgTitle !== null ) { |
79 | 76 | wfProfileIn( 'main-try-filecache' ); |
80 | 77 | // Raw pages should handle cache control on their own, |
81 | 78 | // even when using file cache. This reduces hits from clients. |
— | — | @@ -89,7 +86,6 @@ |
90 | 87 | # Do any stats increment/watchlist stuff |
91 | 88 | $wgArticle = MediaWiki::articleFromTitle( $wgTitle ); |
92 | 89 | $wgArticle->viewUpdates(); |
93 | | - # Tell $wgOut that output is taken care of |
94 | 90 | wfProfileOut( 'main-try-filecache' ); |
95 | 91 | $mediaWiki->restInPeace(); |
96 | 92 | exit; |
— | — | @@ -114,4 +110,3 @@ |
115 | 111 | $mediaWiki->finalCleanup( $wgOut ); |
116 | 112 | |
117 | 113 | $mediaWiki->restInPeace(); |
118 | | - |