From: Antoine Musso Date: Tue, 23 Jan 2007 20:10:02 +0000 (+0000) Subject: Final fix for #8712 : publish effective user groups to javascript. X-Git-Tag: 1.31.0-rc.0~54200 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=8baca0fdf1256bd903e79f8a042d5090af8d0cd1;p=lhc%2Fweb%2Fwiklou.git Final fix for #8712 : publish effective user groups to javascript. Patch by Carl Fürstenberg http://bugzilla.wikimedia.org/attachment.cgi?id=3126 --- diff --git a/includes/Skin.php b/includes/Skin.php index ed8d3de244..317097e7eb 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -313,7 +313,7 @@ class Skin extends Linker { 'wgArticleId' => $wgTitle->getArticleId(), 'wgIsArticle' => $wgOut->isArticle(), 'wgUserName' => $wgUser->isAnon() ? NULL : $wgUser->getName(), - 'wgUserGroups' => $wgUser->isAnon() ? NULL : $wgUser->getGroups(), + 'wgUserGroups' => $wgUser->isAnon() ? NULL : $wgUser->getEffectiveGroups(), 'wgUserLanguage' => $wgLang->getCode(), 'wgContentLanguage' => $wgContLang->getCode(), 'wgBreakFrames' => $wgBreakFrames,