From 8f416baead93a48e5799e44b8bd2e2c4859f4e04 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Fri, 14 Sep 2007 13:18:58 +0200 Subject: auf Version 1.11 aktualisiert; Login-Bug behoben --- includes/Profiler.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'includes/Profiler.php') diff --git a/includes/Profiler.php b/includes/Profiler.php index da3a82ed..8e1cd147 100644 --- a/includes/Profiler.php +++ b/includes/Profiler.php @@ -301,6 +301,9 @@ class Profiler { * @static */ function logToDB($name, $timeSum, $eventCount) { + # Do not log anything if database is readonly (bug 5375) + if( wfReadOnly() ) { return; } + # Warning: $wguname is a live patch, it should be moved to Setup.php global $wguname, $wgProfilePerHost; @@ -361,4 +364,4 @@ class Profiler { } -?> + -- cgit v1.2.3-54-g00ecf