Code review!
authorÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Sat, 7 Jan 2006 12:25:36 +0000 (12:25 +0000)
committerÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Sat, 7 Jan 2006 12:25:36 +0000 (12:25 +0000)
* Don't start a new scope with if defined 'MEDIAWIKI...

includes/OutputPage.php

index 21839a3..41c1c38 100644 (file)
@@ -1,16 +1,12 @@
 <?php
+if ( ! defined( 'MEDIAWIKI' ) )
+       die();
 /**
  * @package MediaWiki
  */
 
-/**
- * This is not a valid entry point, perform no further processing unless MEDIAWIKI is defined
- */
-if( defined( 'MEDIAWIKI' ) ) {
-
-# See design.txt
-
-if($wgUseTeX) require_once( 'Math.php' );
+if ( $wgUseTeX )
+       require_once 'Math.php';
 
 /**
  * @todo document
@@ -999,7 +995,4 @@ class OutputPage {
        }
 
 }
-
-} // MediaWiki
-
 ?>