Commit graph

12 commits

Author SHA1 Message Date
Max Semenik dbc8ef531f Bug 13742 - Allow for gadgets to be turned on by default.
Because I'm lazy to do everything twice, README now points to on-wiki docs for definition format.
2011-04-12 18:09:50 +00:00
Sam Reed eaee1521d9 * (bug 27512) update documentation for Gadgets extension 2011-02-18 11:03:47 +00:00
Purodha B Blissenbach 40ea6a2f27 README: two typos fixed. 2011-01-08 11:02:52 +00:00
Max Semenik 43133f5655 Follow-up r76527: updated readme 2010-11-11 18:46:54 +00:00
Brion Vibber 740da4c34d Revert r37263 for now:
* (bug 12211) Show some gadgets only for admins
	* (bug 13742) Allow for gadgets to be turned on by default

I'm a bit leery of the 'on by default' entirely at the moment. :)

A few comments:
* The readme examples don't seem to clearly show the option format
* Why are numeric constants being used as indexes to the option array? Strings are easier to work with and debug.
* There's a lot of stuff like this which feels very ugly:
	if( isset( $gadget->options[Gadget::RIGHTS] ) && !empty( $gadget->options[Gadget::RIGHTS] ) ) {
  Since it's all hard-coded anyway, why not just do something nice and clear like this?
	if( !empty( $gadget->rights ) ) {
* And this:
    if( wfGadgetAllowed( $gadget->options ) ) {
  to:
    if( $gadget->isAllowed() ) {
2008-07-07 18:50:47 +00:00
Victor Vasiliev a1e40d79c1 * (bug 12211) Show some gadgets only for admins
* (bug 13742) Allow for gadgets to be turned on by default
Modified patch by MaxSem
2008-07-07 16:54:20 +00:00
Siebrand Mazeland 29813fc87a Whitespace fixes 2008-02-04 08:08:43 +00:00
Daniel Kinzler 9a6aeab259 updated to reflect new naming convention 2007-11-16 20:46:48 +00:00
Brion Vibber 6805aeea2b spelling fixes 2007-11-16 19:21:19 +00:00
Daniel Kinzler ebc206ba2b normalize gadget names, allow spaces 2007-08-01 21:25:27 +00:00
Daniel Kinzler 124364fb2e fixed i18n issues 2007-07-31 22:28:30 +00:00
Daniel Kinzler 724a7b85d9 Gadgets extension: enable JS based gadgets via user preferences 2007-07-31 10:21:34 +00:00