* Removed lots of explicit require_once statements. The autoloader should theoretical...
authorTim Starling <tstarling@users.mediawiki.org>
Tue, 3 Oct 2006 13:00:52 +0000 (13:00 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Tue, 3 Oct 2006 13:00:52 +0000 (13:00 +0000)
commit3005679b0e6dbf5238060cbe543eea4695e4a00c
tree47c40515eceeb201c646043fdf002b64ab69a3bb
parent8e8386d4804cf5a6fddd20788268d2c713aeaf11
* Removed lots of explicit require_once statements. The autoloader should theoretically be faster, because it always uses an absolute path, eliminating the need for a search, and it is never called unnecessarily. Absolute paths are also more robust in the face of odd configurations or usage patterns. Moved a few constants around to support this, they always have to be available before the method call.
* Deleted DatabaseMysql.php, no longer necessary, database classes are autoloaded.
* Moved wfGetMimeMagic() to MimeMagic::singleton()
* Fixed a couple of __CLASS__.'::'.__FUNCTION__ things.
34 files changed:
includes/AjaxDispatcher.php
includes/AjaxFunctions.php
includes/Article.php
includes/AutoLoader.php
includes/Database.php
includes/DatabaseMysql.php [deleted file]
includes/DatabaseOracle.php
includes/DatabasePostgres.php
includes/Defines.php
includes/DifferenceEngine.php
includes/EditPage.php
includes/Export.php
includes/ExternalStoreDB.php
includes/FileStore.php
includes/GlobalFunctions.php
includes/HistoryBlob.php
includes/Image.php
includes/ImagePage.php
includes/LoadBalancer.php
includes/MimeMagic.php
includes/ObjectCache.php
includes/ProtectionForm.php
includes/Revision.php
includes/Skin.php
includes/SpecialExport.php
includes/SpecialLongpages.php
includes/SpecialRecentchanges.php
includes/SpecialUndelete.php
includes/SpecialUpload.php
includes/SpecialUploadMogile.php
includes/StreamFile.php
includes/WebRequest.php
maintenance/dumpBackup.php
maintenance/dumpTextPass.php