* Fix display of read-only lockfile message
authorBrion Vibber <brion@users.mediawiki.org>
Wed, 17 Aug 2005 07:37:47 +0000 (07:37 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Wed, 17 Aug 2005 07:37:47 +0000 (07:37 +0000)
Committing live hack.

RELEASE-NOTES
includes/GlobalFunctions.php

index 8b04c37..1e743dc 100644 (file)
@@ -22,6 +22,7 @@ Misc work going on.....
 * (bug 3141) Partial support for Breton language (thanks Fulup).
 * Partial support for Basque language (from wikipedia and meta)
 * (bug 3116) Division by zero on [[Image:Foo.png|123x123px|]]
+* Fix display of read-only lockfile message
 
 
 === Caveats ===
index a95f5f3..383dee5 100644 (file)
@@ -238,7 +238,7 @@ function wfReadOnly() {
 
        // Set $wgReadOnly and unset $wgReadOnlyFile, for faster access next time
        if ( is_file( $wgReadOnlyFile ) ) {
-               $wgReadOnly = true;
+               $wgReadOnly = file_get_contents( $wgReadOnlyFile );
        } else {
                $wgReadOnly = false;
        }