Re-add human readable parser limit report
authorKunal Mehta <legoktm@member.fsf.org>
Sun, 16 Oct 2016 02:17:08 +0000 (19:17 -0700)
committerTim Starling <tstarling@wikimedia.org>
Sun, 16 Oct 2016 03:47:50 +0000 (03:47 +0000)
commit0051f108b954b52b9981d5d85862ac1f292db80c
treeef004fe3be7733b8b936a52cf047207630c1e8e9
parent2eaae785c95437aed784ab981c8d151b0ad34f47
Re-add human readable parser limit report

This mostly reverts commit 1255654ed5a89ed57491bda38f544ed87e3bc601.

This re-adds the human readable parser limit report, and makes a few
adjustments necessary for it to work properly.

* In EditPage::getPreviewLimitReport(), only generate the HTML report,
  the JS variable will be added by OutputPage
* If there are multiple calls to OutputPage::addParserOutputMetadata(),
  only use the limit report data from the first one.
* Only add the wgPageParseReport variable if limit report data is
  available.

Bug: T142210
Change-Id: Iad2646acde79b8a59710bb9fd5fbbfea5a39c341
includes/EditPage.php
includes/OutputPage.php