Merge "mw.config: Add wgPageContentModel for content model of current page"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Tue, 7 May 2013 20:53:20 +0000 (20:53 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Tue, 7 May 2013 20:53:20 +0000 (20:53 +0000)
1  2 
includes/OutputPage.php

diff --combined includes/OutputPage.php
@@@ -3062,6 -3062,7 +3062,7 @@@ $template
                        'wgCategories' => $this->getCategories(),
                        'wgBreakFrames' => $this->getFrameOptions() == 'DENY',
                        'wgPageContentLanguage' => $lang->getCode(),
+                       'wgPageContentModel' => $title->getContentModel(),
                        'wgSeparatorTransformTable' => $compactSeparatorTransTable,
                        'wgDigitTransformTable' => $compactDigitTransTable,
                        'wgDefaultDateFormat' => $lang->getDefaultDateFormat(),
                        $vars['wgUserEditCount'] = $user->getEditCount();
                        $userReg = wfTimestampOrNull( TS_UNIX, $user->getRegistration() );
                        $vars['wgUserRegistration'] = $userReg !== null ? ( $userReg * 1000 ) : null;
 +                      // Get the revision ID of the oldest new message on the user's talk
 +                      // page. This can be used for constructing new message alerts on
 +                      // the client side.
 +                      $vars['wgUserNewMsgRevisionId'] = $user->getNewMessageRevisionId();
                }
                if ( $wgContLang->hasVariants() ) {
                        $vars['wgUserVariant'] = $wgContLang->getPreferredVariant();