From 8aabcc03d19bca2afa38202d3c9e09c34adb9113 Mon Sep 17 00:00:00 2001 From: Domas Mituzas Date: Sat, 14 Jan 2006 11:04:04 +0000 Subject: [PATCH] Be less anal about entry points, class definitions do no harm to anyone, defined() is expensive --- includes/Categoryfinder.php | 4 +--- includes/Exif.php | 1 - includes/Hooks.php | 2 -- includes/Namespace.php | 2 -- includes/ObjectCache.php | 7 ------- includes/PersistentObject.php | 2 -- includes/ProxyTools.php | 2 -- includes/SpecialPreferences.php | 3 --- 8 files changed, 1 insertion(+), 22 deletions(-) diff --git a/includes/Categoryfinder.php b/includes/Categoryfinder.php index b1e48dfa15..59c8894ab8 100644 --- a/includes/Categoryfinder.php +++ b/includes/Categoryfinder.php @@ -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 +?> diff --git a/includes/Exif.php b/includes/Exif.php index 9816916313..f7355f6ef6 100644 --- a/includes/Exif.php +++ b/includes/Exif.php @@ -1,5 +1,4 @@ . diff --git a/includes/Namespace.php b/includes/Namespace.php index 1d85ae3267..f8a1ab81f0 100644 --- a/includes/Namespace.php +++ b/includes/Namespace.php @@ -1,6 +1,4 @@