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