From: umherirrender Date: Tue, 7 May 2013 19:59:40 +0000 (+0200) Subject: mw.config: Add wgPageContentModel for content model of current page X-Git-Tag: 1.31.0-rc.0~19743^2 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=7ced06d8d897e12aff5ed0adb5069f407c214400;p=lhc%2Fweb%2Fwiklou.git mw.config: Add wgPageContentModel for content model of current page This field of the page table can be useful to determine the corrosponding model for a page. Change-Id: I0525ad764540b213b2697e1e9e64f7da73f6cf83 --- diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 3abfff0637..80b1026ad0 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -3062,6 +3062,7 @@ $templates 'wgCategories' => $this->getCategories(), 'wgBreakFrames' => $this->getFrameOptions() == 'DENY', 'wgPageContentLanguage' => $lang->getCode(), + 'wgPageContentModel' => $title->getContentModel(), 'wgSeparatorTransformTable' => $compactSeparatorTransTable, 'wgDigitTransformTable' => $compactDigitTransTable, 'wgDefaultDateFormat' => $lang->getDefaultDateFormat(),