Whitespace updates.
[lhc/web/wiklou.git] / index.php
index 9caed7a..3b7195c 100644 (file)
--- a/index.php
+++ b/index.php
@@ -64,12 +64,16 @@ ENDL;
 # Initialise common code.  This gives us access to GlobalFunctions, the AutoLoader, and
 # the globals $wgRequest, $wgOut, $wgUser, $wgLang and $wgContLang, amongst others; it
 # does *not* load $wgTitle
-require ( dirname( __FILE__ ) . '/includes/WebStart.php' );
+if ( isset( $_SERVER['MW_COMPILED'] ) ) {
+       require ( 'phase3/includes/WebStart.php' );
+} else {
+       require ( dirname( __FILE__ ) . '/includes/WebStart.php' );
+}
 
 try {
        wfIndexMain();
 } catch ( Exception $e ) {
-       wfExceptionHandler( $e );
+       MWExceptionHandler::handle( $e );
 }
 
 function wfIndexMain() {