[FileRepo]
authorAaron Schulz <aaron@users.mediawiki.org>
Wed, 14 Mar 2012 21:30:26 +0000 (21:30 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Fri, 23 Mar 2012 19:23:01 +0000 (12:23 -0700)
commit2330bd514af1b316bf48056a0bf96bfe133773e4
tree0df2b29389f4b4dc4c27f526fd40826d6efbdd2a
parent9a5cbc553e56d5165641d8d6e070798ae66166e3
[FileRepo]
* Added getReadOnlyReason() function to FileRepo to check read-only status. Added such checks to the File object functions that mutate files in storage. This should make read-only mode more tolerable (which is needed at least briefly when switching backends).
* Added lock()/unlock() calls to File restore() function.
* Use proper isOK() accessor for Status objects.

Change-Id: I7368912b01f7fd1ec34125d12c0844388cbb3b2d
includes/filerepo/FileRepo.php
includes/filerepo/file/LocalFile.php
languages/messages/MessagesEn.php
maintenance/language/messages.inc