X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FOutputPage.php;h=746cd0e709d61624c8e9cd77fe04fe9ddbd9c86d;hb=cbc4fd7a5b81f7fec171d78670af453e2882e891;hp=80b1026ad0c0b1f84e19139e5e908a46406ed123;hpb=7ced06d8d897e12aff5ed0adb5069f407c214400;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 80b1026ad0..746cd0e709 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -2076,7 +2076,7 @@ class OutputPage extends ContextSource { } /** - * Actually output something with print(). + * Actually output something with print. * * @param string $ins the string to output */ @@ -3075,6 +3075,10 @@ $templates $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();