Use the MWDebug class to display debug log back in the request.
authorAlexandre Emsenhuber <ialex.wiki@gmail.com>
Mon, 27 Aug 2012 20:57:15 +0000 (22:57 +0200)
committerAlexandre Emsenhuber <ialex.wiki@gmail.com>
Mon, 27 Aug 2012 21:47:19 +0000 (23:47 +0200)
commit61dd1d037b5eb5ac54ac03e29ba94d4440477063
tree3b982cc8abda1e4e6ea856238db2cf1b8eb9f778
parentdb705be9f605756ee85a67dc295cacf1f5b5601d
Use the MWDebug class to display debug log back in the request.

- This removes the duplication of MWDebug::$debug and
  OutputPage::$mDebugtext, so there's no need to store two times
  the same text
- Removed OutputPage::debug() since it's no longer used
- Had to keep OutputPage::$mDebugtext because it's still
  referenced by SemanticPageMaker extension
- Moved Skin::formatDebugHTML() to MWDebug::GetHTMLDebugLog()
  and replaced the call in Skin::generateDebugHTML() to use it
- Also check $logonly before sending entries to the debug
  toolbar in wfDebug(), for consistency
- Changed MWDebug::getDebugHTML() to also return the debug log
  in an HTML comment if $wgDebugComments is set to true and
  changed the location of this call to BaseTemplate::printTrail()
  so that its result is the latest possible. This also includes
  the debug toolbar.
- Removed MockOutputPage and related test cases since they are
  no longer accurate

Change-Id: Ie0f389f8566457b1c938c627ed930040741ac9d9
includes/GlobalFunctions.php
includes/OutputPage.php
includes/Skin.php
includes/SkinTemplate.php
includes/debug/Debug.php
tests/TestsAutoLoader.php
tests/phpunit/includes/GlobalFunctions/GlobalTest.php
tests/phpunit/includes/MockOutputPage.php [deleted file]