Tweak for r29770 (yes, some months after it):
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Wed, 20 Aug 2008 21:27:12 +0000 (21:27 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Wed, 20 Aug 2008 21:27:12 +0000 (21:27 +0000)
commit28eff43b1de94d08677fab98b9c757c52aa0618c
treee697306df0ec33f723eb135c634bf2ecdcf05dd5
parentf830c86e06ccc3ba28872314f546a8dbb7665411
Tweak for r29770 (yes, some months after it):
If the wiki is read only mode, don't show a "database locked" error if previewing or showing diff, but rather the "normal" action with a warning that the database is currently locked. If the user is trying to save the page, he'll see the preview page instead. Currently, if you are saving or previewing a page while the database is locked, you'll see the "database locked" error with the current text (or no text at all if the page doesn't exist), not your text, this might be confusing.

Also added the reason of the lock to the readonlywarning message.
includes/EditPage.php
languages/messages/MessagesEn.php