Removed most exit() calls from the MediaWiki core, by replacing them with either...
authorTim Starling <tstarling@users.mediawiki.org>
Wed, 7 Jun 2006 06:40:24 +0000 (06:40 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Wed, 7 Jun 2006 06:40:24 +0000 (06:40 +0000)
commit02547dac72e11c4ee5932e6418e22d3600df0926
tree663f1e73ce432dcc6b13193051c2ec18b1660485
parent2d03f525986140270e6b4ed01be5cd94983c4688
Removed most exit() calls from the MediaWiki core, by replacing them with either a throw or by classic error checking. OutputPage::fatalError() and similar functions are deprecated, use either OutputPage::showFatalError() to return control or throw new FatalError() to relinquish it. Backwards compatibility of all interfaces has been maintained, thus extensions should continue to work and can be ported at a later date.
40 files changed:
includes/Article.php
includes/BagOStuff.php
includes/DatabaseFunctions.php
includes/Exception.php
includes/Export.php
includes/FakeTitle.php
includes/GlobalFunctions.php
includes/Group.php
includes/HistoryBlob.php
includes/Hooks.php
includes/Image.php
includes/ImageGallery.php
includes/ImagePage.php
includes/Linker.php
includes/LinksUpdate.php
includes/MagicWord.php
includes/MessageCache.php
includes/OutputPage.php
includes/Parser.php
includes/ProtectionForm.php
includes/Revision.php
includes/Sanitizer.php
includes/Setup.php
includes/Skin.php
includes/SpecialContributions.php
includes/SpecialEmailuser.php
includes/SpecialLockdb.php
includes/SpecialMovepage.php
includes/SpecialPage.php
includes/SpecialPreferences.php
includes/SpecialRevisiondelete.php
includes/SpecialUndelete.php
includes/SpecialUnlockdb.php
includes/SpecialUpload.php
includes/SpecialUploadMogile.php
includes/SpecialWhatlinkshere.php
includes/Title.php
includes/User.php
includes/WebRequest.php
includes/Wiki.php