r22085 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r22084‎ | r22085 | r22086 >
Date:21:05, 10 May 2007
Author:hashar
Status:old
Tags:
Comment:
Fix #5375: profiling does not respect read-only mode
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/Profiler.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Profiler.php
@@ -301,6 +301,9 @@
302302 * @static
303303 */
304304 function logToDB($name, $timeSum, $eventCount) {
 305+ # Do not log anything if database is readonly (bug 5375)
 306+ if( wfReadOnly() ) { return; }
 307+
305308 # Warning: $wguname is a live patch, it should be moved to Setup.php
306309 global $wguname, $wgProfilePerHost;
307310
Index: trunk/phase3/RELEASE-NOTES
@@ -48,6 +48,7 @@
4949 * Links to the MediaWiki namespace for system messages having their default
5050 values are no longer shown as nonexistent (e.g., in red)
5151 * Special:Ipblocklist differentiates between empty list and no search results.
 52+* (bug 5375) profiling does not respect read-only mode.
5253
5354 == Maintenance script changes since 1.10 ==
5455