From 7ced06d8d897e12aff5ed0adb5069f407c214400 Mon Sep 17 00:00:00 2001 From: umherirrender Date: Tue, 7 May 2013 21:59:40 +0200 Subject: [PATCH] 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 --- includes/OutputPage.php | 1 + 1 file changed, 1 insertion(+) 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(), -- 2.20.1