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
Daniel Kinzler
5328152d53
added id for gadget sections on preferences page
2008-06-26 13:07:45 +00:00
Alexandre Emsenhuber
1649992bf5
* Use $wgOut->addWikiMsg() instead of $wgOut->addHtml( wfMsgWikiHtml() ) as brion pointed out
...
* Remove parsermag option to wfMsgExt(), parseinline override it
2008-06-06 15:45:29 +00:00
Alexandre Emsenhuber
06c8af8ede
Fix XHTML error: <p> are automatically added by wfMsgWikiHtml()
2008-06-06 10:07:53 +00:00
Niklas Laxström
7dc50825a3
* Fixed a bug that caused gadgets definition to be reparsed on every request
2008-05-09 17:09:08 +00:00
Tim Starling
e0b6b1094e
Don't call preg_replace ~80 times per request. Leave the heavy lifting to Special:Version, using the new svn-revision member of $wgExtensionCredits.
2008-05-06 11:59:58 +00:00
Niklas Laxström
61b48c5bf5
* Fix cache check
2008-03-22 20:52:41 +00:00
Siebrand Mazeland
e3771b2198
* add svn:keywords 'LastChangedDate'
...
* replace text 'version' in ExtensionCredits with version based on 'LastChangedDate' for automatic version updating
2008-02-27 14:13:10 +00:00
Siebrand Mazeland
d4c4059ac5
* Gadgets uses wfLoadExtensionMessages now
...
* delay special page message loading a tiny bit
* add descriptionmsg and version in extension credits
* update Translate
2008-02-04 08:40:17 +00:00
Siebrand Mazeland
29813fc87a
Whitespace fixes
2008-02-04 08:08:43 +00:00
Siebrand Mazeland
d16ee44539
revert r28340, r28343 to r28349, r28351, r28364
2007-12-16 18:38:50 +00:00
Siebrand Mazeland
184482dd28
* complete $wgExtensionCredits
...
* remove trailing whitespace
2007-12-10 12:32:22 +00:00
Daniel Cannon
b80d4b0319
* Add comment about why we don't want a label here.
...
* Break lengthy line
2007-12-04 23:09:18 +00:00
Daniel Cannon
9ef3b02fd7
Actually, we don't even need a label here.
2007-12-04 23:07:19 +00:00
Daniel Cannon
c784280fcf
Rmv "for" property of labels on Gadgets preferences page. Causes some annoying behavior when the label is a link to another page.
2007-12-04 22:52:21 +00:00
Daniel Kinzler
96119823e4
fixed caching bug (bugzilla:12128): inconsistency introduced when immediately recaching from lagged slave (thanks brion)
2007-11-27 16:51:48 +00:00
Brion Vibber
47dfae4fee
No longer need to force gadget names to lower internally
2007-11-16 23:02:30 +00:00
Brion Vibber
48f36695b5
Cleanup:
...
* Use message prefixes to keep namespaces clean: 'gadget-' for gadget name and code, 'gadget-section-' for gadget sections
* Make link behavior consistent with capitallinks off
* Put headings outside the list in Special:Gadgets
* Some general code cleanup (ditch references, etc)
2007-11-16 20:13:25 +00:00
Daniel Kinzler
a51ec4f40c
fixed yesterday's mis-fix of i18n fallback
2007-11-16 12:04:18 +00:00
Daniel Kinzler
f246429dd2
fixed i18n fallback
2007-11-15 23:41:16 +00:00
Daniel Kinzler
7ecf44c8b7
rm debug echo
2007-11-14 22:03:41 +00:00
Daniel Kinzler
59d70b3b0f
cache parsed gadget list using wgMemc
2007-08-09 22:01:56 +00:00
Raimond Spekking
624980a418
Adding missing return value 'true' to loadGadgetsI18n
...
Whitespaces
2007-08-06 08:37:15 +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