From: Rob Church Date: Sat, 20 Jan 2007 19:38:51 +0000 (+0000) Subject: * (bug 8712) Expose user groups as a JavaScript global [patch c/o AzaToth] X-Git-Tag: 1.31.0-rc.0~54270 X-Git-Url: https://git.cyclocoop.org//%22?a=commitdiff_plain;h=031d38fdce01208cc3d12c2faa91fd27f2f267fa;p=lhc%2Fweb%2Fwiklou.git * (bug 8712) Expose user groups as a JavaScript global [patch c/o AzaToth] * Tweak release notes from hashar's last commmit --- 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,