Removed checks for the "MEDIAWIKI" constant on files that only define classes.
authorAlexandre Emsenhuber <ialex.wiki@gmail.com>
Wed, 23 May 2012 17:35:12 +0000 (19:35 +0200)
committerAlexandre Emsenhuber <ialex.wiki@gmail.com>
Wed, 23 May 2012 19:20:42 +0000 (21:20 +0200)
This checks are not needed in that case.

Change-Id: Ia83447427de8b7ea32aced8ff43c7a252b8d504c

includes/CategoryPage.php
includes/CategoryViewer.php
includes/ImageGallery.php
includes/OutputPage.php
includes/Skin.php
includes/SkinLegacy.php
includes/SkinTemplate.php
includes/job/JobQueue.php
includes/json/FormatJson.php
includes/resourceloader/ResourceLoaderWikiModule.php
includes/specials/SpecialTags.php

index d7f78ec..32e270e 100644 (file)
@@ -21,9 +21,6 @@
  * @file
  */
 
-if ( !defined( 'MEDIAWIKI' ) )
-       die( 1 );
-
 /**
  * Special handling for category description pages, showing pages,
  * subcategories and file that belong to the category
index 553d64f..d83e0e0 100644 (file)
@@ -20,9 +20,6 @@
  * @file
  */
 
-if ( !defined( 'MEDIAWIKI' ) )
-       die( 1 );
-
 class CategoryViewer extends ContextSource {
        var $limit, $from, $until,
                $articles, $articles_start_char,
index 247acff..d391ead 100644 (file)
@@ -20,9 +20,6 @@
  * @file
  */
 
-if ( ! defined( 'MEDIAWIKI' ) )
-       die( 1 );
-
 /**
  * Image gallery
  *
index ad4e4ef..560588f 100644 (file)
  * @file
  */
 
-if ( !defined( 'MEDIAWIKI' ) ) {
-       die( 1 );
-}
-
 /**
  * This class should be covered by a general architecture document which does
  * not exist as of January 2011.  This is one of the Core classes and should
index 677664a..64cf569 100644 (file)
  * @defgroup Skins Skins
  */
 
-if ( !defined( 'MEDIAWIKI' ) ) {
-       die( 1 );
-}
-
 /**
  * The main skin class that provide methods and properties for all other skins.
  * This base class is also the "Standard" skin.
index 1deaf89..e1ec897 100644 (file)
  * @file
  */
 
-if ( !defined( 'MEDIAWIKI' ) ) {
-       die( 1 );
-}
-
 class SkinLegacy extends SkinTemplate {
        var $useHeadElement = true;
        protected $mWatchLinkNum = 0; // Appended to end of watch link id's
index 9807237..114a55c 100644 (file)
  * @file
  */
 
-if ( !defined( 'MEDIAWIKI' ) ) {
-       die( 1 );
-}
-
 /**
  * Wrapper object for MediaWiki's localization functions,
  * to be passed to the template engine.
index a53905f..0065247 100644 (file)
  * @defgroup JobQueue JobQueue
  */
 
-if ( !defined( 'MEDIAWIKI' ) ) {
-       die( "This file is part of MediaWiki, it is not a valid entry point\n" );
-}
-
 /**
  * Class to both describe a background job and handle jobs.
  *
index 4ef59ed..cae3f12 100644 (file)
  * @file
  */
 
-if ( !defined( 'MEDIAWIKI' ) ) {
-       die( 1 );
-}
-
 require_once dirname( __FILE__ ) . '/Services_JSON.php';
 
 /**
index a69676d..f35e774 100644 (file)
@@ -22,8 +22,6 @@
  * @author Roan Kattouw
  */
 
-defined( 'MEDIAWIKI' ) || die( 1 );
-
 /**
  * Abstraction for resource loader modules which pull from wiki pages
  *
index 1fc8ea5..df720a1 100644 (file)
@@ -21,9 +21,6 @@
  * @ingroup SpecialPage
  */
 
-if (!defined('MEDIAWIKI'))
-       die;
-
 /**
  * A special page that lists tags for edits
  *