Commit graph

11 commits

Author SHA1 Message Date
Szymon Świerkosz
bde989e74c Add support for User:0 in 'user' and 'user.groups' RL modules.
Change-Id: I290e44166306036629ada990e233f098558c2aea
2012-05-10 20:12:13 +02:00
Alexandre Emsenhuber
7d9016943d Added missing GPLv2 headers in some places.
Also made file/class documentation more consistent.

Change-Id: I1815587ab2eeb24623ce4bf1c695088bd3f1c2ea
2012-04-30 09:16:10 +02:00
Alexandre Emsenhuber
c796585a30 Use $wgUser in ResourceLoaderUserGroupsModule when possible.
$wgUser will be used is the User object corresponding to the user name passed in the "user" parameter. This avoids calling User::newFromName() (which will unstub $wgAuth, do database requests, etc.) when an object is already available.

Change-Id: Ia6c5ee1a59581b6410232fa3101af5ae1ff8577e
2012-04-09 20:27:40 +02:00
Aaron Schulz
f4db02bd74 * Fixed undefined var $g error
* Style cleanups
2011-10-19 17:30:55 +00:00
Happy-melon
346f3149f7 Follow-up r82285: we should not apply case conversion to these names, because it's unintuitive and potentially risky when they could theoretically contain weird characters. It was necessary before r86508, but not now there is a prefix meaning the group name is not at the start of the title. Plus the default messages are already at the lowercase titles. 2011-10-19 17:09:04 +00:00
Sam Reed
16c194d0ae Fixup/add documentation
Remove trailing whitespace
2011-05-21 17:45:20 +00:00
Happy-melon
8b9aacebff Follow-up r82285: prefix group css and js pages with "Group-", and fix license header. 2011-04-20 17:29:24 +00:00
Sam Reed
c0830dd868 2 subclasses of ResourceLoaderWikiModule implement a duplicate version of getFlip. Move it up into ResourceLoaderWikiModule
(Almost looks like it could all go into ResourceLoaderModule... But that uses a different version, seemingly, the only one. 3 other subclasses of ResourceLoaderModule implement the same version of getFlip as is moved into a parent class here... Seems daft to have a different version in the base abstract class... Minor oversight?)

Some documentation
2011-02-18 00:33:45 +00:00
Happy-melon
eb9cf4b00c Create a user.groups module in ResourceLoader, which bundles a CSS and JS page for each usergroup the user is a member of (MediaWiki:Sysop.js, MediaWiki:Autoconfirmed.css, etc). Groups '*' and 'user' are not included. 2011-02-16 19:54:02 +00:00
Happy-melon
ef6041d750 revert r82283, loads of unrelated changes 2011-02-16 19:51:25 +00:00
Happy-melon
d64cd26a7c Create a user.groups module in ResourceLoader, which bundles a CSS and JS page for each usergroup the user is a member of (MediaWiki:Sysop.js, MediaWiki:Autoconfirmed.css, etc). Groups '*' and 'user' are not included. 2011-02-16 19:49:37 +00:00