| Index: branches/RL2/extensions/Gadgets/modules/ext.gadgets.gadgetmanager.js |
| — | — | @@ -269,6 +269,14 @@ |
| 270 | 270 | } |
| 271 | 271 | // getGadgetData not done yet, leave cats for it's callback to use |
| 272 | 272 | cats = ret; |
| | 273 | + // Error callback. Fallback to empty array |
| | 274 | + }, function( errorCode ) { |
| | 275 | + if ( gadget ) { |
| | 276 | + // getGadgetData already done |
| | 277 | + return ga.ui.showFancyForm( gadget, [], mode ); |
| | 278 | + } |
| | 279 | + // getGadgetData not done yet, leave cats for it's callback to use |
| | 280 | + cats = []; |
| 273 | 281 | }); |
| 274 | 282 | }, |
| 275 | 283 | |
| Index: branches/RL2/extensions/Gadgets/README |
| — | — | @@ -37,5 +37,5 @@ |
| 38 | 38 | * Gadget modules extend ResourceLoaderWikiModule and thus qualify as having |
| 39 | 39 | origin ORIGIN_USER_SITEWIDE. This means that gadgets are never loaded on (special) pages |
| 40 | 40 | that call OutputPage::disallowUserJs(). For example Special:Preferences, Special:UserLogin |
| 41 | | - Special:ResetPass and Special:Gadgets so users can always disable any broken gadgets |
| 42 | | - they may have enabled, and malicious gadgets will be unable to steal passwords. |
| | 41 | + and Special:ResetPass so users can always disable any broken gadgets they may have enabled, |
| | 42 | + and malicious gadgets will be unable to steal passwords. |