From 031d38fdce01208cc3d12c2faa91fd27f2f267fa Mon Sep 17 00:00:00 2001 From: Rob Church Date: Sat, 20 Jan 2007 19:38:51 +0000 Subject: [PATCH] * (bug 8712) Expose user groups as a JavaScript global [patch c/o AzaToth] * Tweak release notes from hashar's last commmit --- RELEASE-NOTES | 4 +++- includes/Skin.php | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index d2855cb014..e53ac884fe 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -127,7 +127,8 @@ lighter making things easier to read. * Renamed constructor methods to PHP 5 __construct reserved name * (bug 8715) Warn users when editing an interface message whether or not the message page exists * ar: fix the 'create a new page' on search page when no exact match found -* (bug 8703) li: corrected 'talk' in namespace names. +* (bug 8703) Corrected Talk namespace name for Limburgish (li) +* (bug 8712) Expose user groups as a JavaScript global == Languages updated == @@ -141,6 +142,7 @@ lighter making things easier to read. * Indonesian (id) * Japanese (ja) * Korean (ko) +* Limburgish (li) * Ripuarian (ksh) * Limburgish (li) * Lithuanian (lt) diff --git a/includes/Skin.php b/includes/Skin.php index fb4007d524..1c2a866384 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -310,6 +310,7 @@ class Skin extends Linker { 'wgArticleId' => $wgTitle->getArticleId(), 'wgIsArticle' => $wgOut->isArticle(), 'wgUserName' => $wgUser->isAnon() ? NULL : $wgUser->getName(), + 'wgUserGroups' => $wgUser->isAnon() ? NULL : $wgUser->getGroups(), 'wgUserLanguage' => $wgLang->getCode(), 'wgContentLanguage' => $wgContLang->getCode(), 'wgBreakFrames' => $wgBreakFrames, -- 2.20.1