Last modified: 2006-07-13 00:16:23 UTC
------------------------------------------------------- root@bling:/var/www/hosts/mediawiki/wiki# svn diff includes/SpecialUnlockdb.php Index: includes/SpecialUnlockdb.php =================================================================== --- includes/SpecialUnlockdb.php (revision 15560) +++ includes/SpecialUnlockdb.php (working copy) @@ -37,9 +37,15 @@ class DBUnlockForm { function showForm( $err ) { - global $wgOut, $wgUser; + global $wgOut, $wgUser, $wgReadOnlyFile; $wgOut->setPagetitle( wfMsg( "unlockdb" ) ); + + if ( !file_exists($wgReadOnlyFile) ) { + $wgOut->addWikiText( "The database is not currently locked, so it cannot be unlocked." ); + return; + } + $wgOut->addWikiText( wfMsg( "unlockdbtext" ) ); if ( "" != $err ) { root@bling:/var/www/hosts/mediawiki/wiki# ------------------------------------------------------- (but should use wfMsg instead of a hard-coded string).
You know what's nice? When people leave us patches as attachments. It makes viewing the diff and saving and applying the patch even easier, especially in the case of larger patches.
Fixed in SVN trunk, r15565.
Thank you, and I didn't realise bugzilla would screw up the formatting quite so badly. :-(