Commit graph

37 commits

Author SHA1 Message Date
Andrew Garrett
f43bcb7b55 Fix regression in r49790, weird spacing for Gadgets and Skin tab. 2009-04-27 14:18:40 +00:00
Niklas Laxström
b98d0b724f * Wrapping inside <p>' creates too much space in search namespace selesction 2009-04-27 11:45:45 +00:00
Andrew Garrett
9b533ab58c Fix display of inverted check fields in HTML forms -- fixes bug 18581. 2009-04-27 00:55:23 +00:00
Andrew Garrett
6650e6e3a9 Fix ids for multi-select types 2009-04-24 11:11:44 +00:00
Andrew Garrett
8b7f9c3d26 Fix selectorother automatic addition of "other" field -- not switched over for the switching of keys/values 2009-04-24 09:02:21 +00:00
Andrew Garrett
de003a1edc Update HTMLSelectOrOtherField to correctly work, since the code changes of having "nested" options and swapping keys and values 2009-04-24 08:58:19 +00:00
Andrew Garrett
155ddf6de4 Branch merge of preferences work branch. Includes fixes for several bugs. WARNING: Breaks some extensions which have not been adapted to use it properly (basically anything not used on Wikimedia). 2009-04-24 01:31:17 +00:00
Aryeh Gregor
c7c4617484 Various Userrights-related fixes:
* Adjust UserrightsForm so that it inherits from SpecialPage; nuke HTMLForm.  Since this breaks backward compatibility, renamed to UserrightsPage.
* Created SpecialPage::isRestricted() and enforced use of SpecialPage::userCanExecute() instead of hardcoded checks.  These can now be overridden so that more complicated restriction systems work sanely.  Used them for UserrightsPage (fixes bug 12489).
* A few random comment/documentation tweaks.
Also, update Special:Version date.
2008-01-03 23:43:24 +00:00
Rotem Liss
d8887852c0 Removing the function HTMLSelectGroups: no longer used (both Special:Userrights and Special:Makesysop use a function from their class). 2007-08-07 19:52:24 +00:00
Aryeh Gregor
a15c419b3d Remove ?>'s from files. They're pointless, and just asking for people to mess with the files and add trailing whitespace. (Yes, I looked over every one and reverted those that were bogus. Slash-enter a million times in less worked well enough, although it was a bit mind-numbing.) 2007-06-29 01:19:14 +00:00
Antoine Musso
84a27cc33e Some fixes to avoid Xml::element call with null content when we actually want
to open a XML element. It should help fix bug #5312 later on.

* XML attributes rendering now made by private Xml::expandAttributes() method
* Xml::openElement() and Xml::tags() no more rely on Xml::element() with
  a null content.
* Fix wfElement() call with null content when we actually open an element.
2007-05-10 20:51:15 +00:00
Brion Vibber
d27f1953fa Beautify the Special:Userrights form a bit 2007-04-27 15:53:28 +00:00
Antoine Musso
c771fc9c96 Use Doxygen @addtogroup instead of phpdoc @package && @subpackage 2007-01-20 15:09:52 +00:00
Nick Jenkins
14c53b728f Code housekeeping stuff (and barring any stuff-ups on my behalf, there should be no changes in behaviour whatsoever after this) -
* removing some unused global declarations.
* removing or commenting out or adding comments for unused local vars.
* Adding one or two local var declarations.
* Declaring $matches array passed to preg_match() / preg_match_all() as array() before using [not required, just have a slight preference for the explicitness].
* remove one or two pass-by-reference function declarations where the value is not modified.
* Adding some braces to if-else blocks.
* In Parser.php, stripstrate is now an object rather than an array as per r17820, so we no longer need ask for a reference to it (as in "$x =& $this->mStripState;"), and in fact it's probably just simpler to get rid of $x altogether.
* Moving some preg regexes from "" quoting to '' quoting to stop static analyzer whinging about bad escape sequences.

... up to "LinksUpdate.php" in the includes/ directory.
2006-11-23 08:25:56 +00:00
Brion Vibber
79763d905f * (bug 7188) Fix minor borkage in HTMLForm 2006-09-01 11:33:23 +00:00
Rotem Liss
53f5677da1 Removing an unused function (was used in SpecialGroups.php). 2006-07-23 11:57:54 +00:00
Rotem Liss
6f0d8da544 Removing the obsolete user group management files. 2006-06-24 20:56:08 +00:00
Antoine Musso
473cd5cbcc unused variables as per #3692 2006-05-01 10:53:59 +00:00
Antoine Musso
69689725c1 Switching from phpdoc to doxygen (use less than 32MB of memory).
Run maintenance/mwdocgen.php to generate doc in ./docs/html/ .
2006-04-19 15:46:24 +00:00
Ævar Arnfjörð Bjarmason
a26d5a49d7 * s~\t+$~~ 2006-01-07 13:31:29 +00:00
Ævar Arnfjörð Bjarmason
7bbe971aec * s~ +$~~ 2006-01-07 13:09:30 +00:00
Brion Vibber
a6d47f47ff Rework the user_groups system, again, into something that seems to actually
more or less work for now.

* user_groups ur_group is now a short string key ('sysop' etc)
* groups table is gone
* user_rights table is gone
* Permissions for groups are for now set in $wgGroupPermissions.
An in-database management system could be re-added in the future
if it's really needed, but for now it's mostly just been screwing
things up.
* Group.php and Special:Groups are deprecated; will probably die.
* User group memberships are set explicitly through addGroup and
removeGroup methods instead of being re-saved on every change to
the user record.

Group keys are migrated from user_rights at upgrade time for older wikis.
The fields in prior 1.5alpha tables were too screwed up and will need to
manually have sysops re-assigned.

The Makesysop extension will need some minor tweaks.
2005-06-09 09:49:10 +00:00
Tim Starling
9bc0985006 fixed Special:Userrights log, and a few other Special:Userrights problems 2005-05-14 05:42:47 +00:00
Tim Starling
f98c133919 Major changes to user groups:
* Added "static groups" feature to remove memcached/DB load time
* Added i18n support, allowing names and descriptions to be optionally drawn from wfMsg/wfMsgForContent
* Fixed Special:Groups, it is now half-decent. Too many changes to list here.
2005-05-01 18:24:20 +00:00
Tim Starling
faef2026c9 Moving Special:Userlevels and Special:Grouplevels to Special:Userrights and Special:Groups respectively. 2005-05-01 12:59:39 +00:00
Antoine Musso
feb72b4162 phpdoc fixes 2005-03-04 08:41:28 +00:00
Antoine Musso
2104f62734 fix phpdoc comment 2005-01-27 19:51:47 +00:00
Antoine Musso
ba4b6af5b5 Implement #858 : split user assignment and group rights. 2005-01-17 11:45:47 +00:00
Antoine Musso
bd46c557ca XHTML fixes 2004-10-24 20:01:23 +00:00
Antoine Musso
fc11eaedaa New userlevel feature. Sysop only, for testing. NO FORM IS VALIDATED : use at your own risks 2004-10-01 15:57:09 +00:00
Jens Frank
d06ec3f12b Documentation: Assign files to packages 2004-10-01 06:25:50 +00:00
Antoine Musso
b6d74c6de1 comments 2004-10-01 03:10:10 +00:00
Antoine Musso
82817746e6 * arraybox() : revert "$value" parameter
* new textareabox()
2004-10-01 03:01:22 +00:00
Antoine Musso
da88c13d76 allow 'value' parameter for array box 2004-10-01 01:16:18 +00:00
Antoine Musso
514120660a typo 2004-09-30 23:48:22 +00:00
Antoine Musso
20b5d4447a removing occurences of sitesettings. Replaced by an internal name. 2004-09-30 23:44:54 +00:00
Antoine Musso
aa487fcf97 class to build forms (c) JeLuF 2004-09-30 22:49:26 +00:00