Move MWDebug enabling logic to Setup.php
authorAntoine Musso <hashar@users.mediawiki.org>
Mon, 16 Jan 2012 13:44:46 +0000 (13:44 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Mon, 16 Jan 2012 13:44:46 +0000 (13:44 +0000)
commitff39c31a97e2d2f310eba49031958c7d7e56256f
tree4a35e629383f1ef564b6c3b01c2ed43b8b1497c3
parent0ef1b1d29c0384c6b5d6f02f9393dcc514ab4d46
Move MWDebug enabling logic to Setup.php

MWDebug initialization method was made to look up for a global variable. This
patch move the logic to Setup.php so we can replicate it when doing tests.

Side effect, MWDebug is disabled by default. Users will explicitly have to
enable it by using init().

Ping r105123
includes/Setup.php
includes/debug/Debug.php