From 8b822ef0c65834cd94842c4b6d54f132d5bd83b5 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Thu, 26 Aug 2010 23:22:17 +0000 Subject: [PATCH] Per wikitech-l discussion, it would be kind of cool if we collected our non-MediaWiki-specific classes in one location to encourage reuse. So I moved IEContentAnalyzer to includes/libs and put a README for 3rd party users. Code that goes in includes/libs should call ZERO MediaWiki code. This means no wfProfileIn, no globals, nada --- includes/AutoLoader.php | 4 +++- includes/{ => libs}/IEContentAnalyzer.php | 0 includes/libs/README | 7 +++++++ 3 files changed, 10 insertions(+), 1 deletion(-) rename includes/{ => libs}/IEContentAnalyzer.php (100%) create mode 100644 includes/libs/README diff --git a/includes/AutoLoader.php b/includes/AutoLoader.php index d3cec5d39f..c30cd9c710 100644 --- a/includes/AutoLoader.php +++ b/includes/AutoLoader.php @@ -124,7 +124,6 @@ $wgAutoloadLocalClasses = array( 'HTMLInfoField' => 'includes/HTMLForm.php', 'Http' => 'includes/HttpFunctions.php', 'HttpRequest' => 'includes/HttpFunctions.php', - 'IEContentAnalyzer' => 'includes/IEContentAnalyzer.php', 'ImageGallery' => 'includes/ImageGallery.php', 'ImageHistoryList' => 'includes/ImagePage.php', 'ImageHistoryPseudoPager' => 'includes/ImagePage.php', @@ -454,6 +453,9 @@ $wgAutoloadLocalClasses = array( 'RefreshLinksJob2' => 'includes/job/RefreshLinksJob.php', 'UploadFromUrlJob' => 'includes/job/UploadFromUrlJob.php', + # includes/libs + 'IEContentAnalyzer' => 'includes/IEContentAnalyzer.php', + # includes/media 'BitmapHandler' => 'includes/media/Bitmap.php', 'BitmapHandler_ClientOnly' => 'includes/media/Bitmap_ClientOnly.php', diff --git a/includes/IEContentAnalyzer.php b/includes/libs/IEContentAnalyzer.php similarity index 100% rename from includes/IEContentAnalyzer.php rename to includes/libs/IEContentAnalyzer.php diff --git a/includes/libs/README b/includes/libs/README new file mode 100644 index 0000000000..bcbc854dab --- /dev/null +++ b/includes/libs/README @@ -0,0 +1,7 @@ +The classes in this directory ./includes/libs are considered standalone +from the remainder of the MediaWiki codebase. They do not call on any other +portions of MediaWiki code, and can be used in other projects without +dependency issues. + +Like the rest of MediaWiki, these are distributed under the GNU General Public +License, version 2. -- 2.20.1