HTTP status messages move: OutputPage -> HttpStatus
authorAntoine Musso <hashar@users.mediawiki.org>
Mon, 4 Jul 2011 21:01:19 +0000 (21:01 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Mon, 4 Jul 2011 21:01:19 +0000 (21:01 +0000)
commita2d41b8d6fdfc4957736f7ecb2311f80451abc09
tree753a78c1d53a9eadf0a356a6a9ba546d806d671f
parent4506956a8d76f632e0f874dcbb7a7b78e3c38b45
HTTP status messages move: OutputPage -> HttpStatus

OutputPage::getStatusMessage() is a method to convert a numeric HTTP status
code to an english message.  It does not really belong to the OutputPage were
it was for historical reason.
This patch move the basic function to a non MediaWiki dependant class in our
directory includes/libs.  We could potentially enhances it, but I do not see
any use cases for us yet.
I have renamed the method to the shorter 'getMessage' since the word 'status'
is now in the class name.

Summary of changes:
* OutputPage::getStatusMessage becomes HttpStatus::getMessage
* Method moved to the new includes/libs/HttpStatus.php
* Autoloader updated
* History kept by using 'svn copy'
* No functional changes
* No input/output format changes
* Old occurences modified in phase3
* OutputPage::getStatusMessages() marked as deprecated

PHPUnit test suite is fine.
Tested manually using a redirection
includes/AutoLoader.php
includes/OutputPage.php
includes/libs/HttpStatus.php [new file with mode: 0644]
includes/specials/SpecialUploadStash.php