From f1f81763176751b1f54f53ee5facce0bd154871f Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Wed, 17 Aug 2005 07:37:47 +0000 Subject: [PATCH] * Fix display of read-only lockfile message Committing live hack. --- RELEASE-NOTES | 1 + includes/GlobalFunctions.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 8b04c37454..1e743dc8e9 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 === diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index a95f5f3d55..383dee5619 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -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; } -- 2.20.1