Be less anal about entry points, class definitions do no harm to anyone, defined...
authorDomas Mituzas <midom@users.mediawiki.org>
Sat, 14 Jan 2006 11:04:04 +0000 (11:04 +0000)
committerDomas Mituzas <midom@users.mediawiki.org>
Sat, 14 Jan 2006 11:04:04 +0000 (11:04 +0000)
includes/Categoryfinder.php
includes/Exif.php
includes/Hooks.php
includes/Namespace.php
includes/ObjectCache.php
includes/PersistentObject.php
includes/ProxyTools.php
includes/SpecialPreferences.php

index b1e48df..59c8894 100644 (file)
@@ -21,8 +21,6 @@ Example use :
 */
 
 
-if( !defined( 'MEDIAWIKI' ) ) die( -1 );
-
 class Categoryfinder {
 
        var $articles = array () ; # The original article IDs passed to the seed function
@@ -188,4 +186,4 @@ class Categoryfinder {
 
 } # END OF CLASS "Categoryfinder"
 
-?>
\ No newline at end of file
+?>
index 9816916..f7355f6 100644 (file)
@@ -1,5 +1,4 @@
 <?php
-if ( !defined( 'MEDIAWIKI' ) ) die( -1 );
 /**
  * @package MediaWiki
  * @subpackage Metadata
index 6485773..9042398 100644 (file)
@@ -1,6 +1,4 @@
 <?php
-if ( ! defined( 'MEDIAWIKI' ) )
-       die( -1 );
 /**
  * Hooks.php -- a tool for running hook functions
  * Copyright 2004, 2005 Evan Prodromou <evan@wikitravel.org>.
index 1d85ae3..f8a1ab8 100644 (file)
@@ -1,6 +1,4 @@
 <?php
-if ( ! defined( 'MEDIAWIKI' ) )
-       die( -1 );
 /**
  * Provide things related to namespaces
  * @package MediaWiki
index 4fa2aea..336e0e6 100644 (file)
@@ -4,13 +4,6 @@
  * @subpackage Cache
  */
 
-/** */
-if (!defined('MEDIAWIKI')) {
-       echo "Not a valid entry point\n";
-       die( -1 );
-}
-
-
 /**
  * FakeMemCachedClient imitates the API of memcached-client v. 0.1.2.
  * It acts as a memcached server with no RAM, that is, all objects are
index 04c805d..2f61440 100644 (file)
@@ -1,6 +1,4 @@
 <?php
-if ( ! defined( 'MEDIAWIKI' ) )
-       die( -1 );
 /**
  * Sometimes one wants to make an extension that defines a class that one wants
  * to backreference somewhere else in the code, doing something like:
index 6201f32..7b8e144 100644 (file)
@@ -1,6 +1,4 @@
 <?php
-if ( ! defined( 'MEDIAWIKI' ) )
-       die( -1 );
 /**
  * Functions for dealing with proxies
  * @package MediaWiki
index d8bd95c..5d229e7 100644 (file)
@@ -5,9 +5,6 @@
  * @subpackage SpecialPage
  */
 
-if( !defined( 'MEDIAWIKI' ) )
-       die( -1 );
-
 /**
  * Entry point that create the "Preferences" object
  */