http://www.mediawiki.org/wiki/Special:Code/MediaWiki/95749

Revision: 95749
Author:   catrope
Date:     2011-08-30 10:03:04 +0000 (Tue, 30 Aug 2011)
Log Message:
-----------
Update the example blob comment to match the example at 
https://secure.wikimedia.org/wikipedia/mediawiki/wiki/ResourceLoader/Version_2_Design_Specification#Storage_of_Gadget_properties

Modified Paths:
--------------
    branches/RL2/extensions/Gadgets/backend/Gadget.php

Modified: branches/RL2/extensions/Gadgets/backend/Gadget.php
===================================================================
--- branches/RL2/extensions/Gadgets/backend/Gadget.php  2011-08-30 10:00:53 UTC 
(rev 95748)
+++ branches/RL2/extensions/Gadgets/backend/Gadget.php  2011-08-30 10:03:04 UTC 
(rev 95749)
@@ -5,11 +5,11 @@
  * The format of the JSON blob is as follows:
  * {
  *   "settings": {
- *     // The rights required to be able to enable this gadget
+ *     // The rights required to be able to enable/load this gadget
  *     "rights": ["delete", "block"],
  *     // Whether this gadget is enabled by default
  *     "default": true
- *     // Whether this gadget is hidden
+ *     // Whether this gadget is hidden from preferences
  *     "hidden": false,
  *     // Whether this gadget is shared
  *     "shared": true,
@@ -17,11 +17,11 @@
  *     "section": "key of gadget section",
  *   },
  *   "module": {
- *     // scripts and styles are pages in the Gadget: namespace
+ *     // Scripts and styles are pages in NS_GADGET
  *     "scripts": ["foobar.js"],
  *     "styles": ["foobar.css"],
- *     "messages": ["foobar-welcome", "recentchanges", "namespaces"],
- *     "dependencies": ["jquery.ui.tabs", "gadget.awesome"]
+ *     "dependencies": ["jquery.ui.tabs", "gadget.awesome"],
+ *     "messages": ["foobar-welcome", "foo-bye", "recentchanges"]
  *   }
  * }
  */


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to