patch for Setup.php
When i want to use CACHE_DB as main cache, i got an fatal error saying "Call to a member function getConnection() on a non-object in /Library/WebServer/Documents/phase3/includes/GlobalFunctions.php on line 2267" wich is the function wfGetDB.
I suppose this due to wfIncrStats() on lines 205 and 209 in Setup.php that need the cache. However, $wgLoadBalancer is initialized at line 228.
When i put the 'SetupSession' of the setup just before 'User' and then the cache just before the initialization of $wgMessageCache, all works fine.
I suggest to change the order of the setup order to fix that error.
Version: 1.12.x
Severity: normal
Attached: