Index: branches/RL2/extensions/Gadgets/Gadgets.hooks.php |
— | — | @@ -288,7 +288,7 @@ |
289 | 289 | 'default' => $gadget->isEnabledForUser( $user ), |
290 | 290 | // HTMLForm is very strict about the names/IDs it accepts |
291 | 291 | // So specify a custom name that we know is safe and won't change |
292 | | - 'name' => 'gadgetpref-' . md5($id), |
| 292 | + 'name' => 'gadgetpref-' . md5( $id ), |
293 | 293 | ); |
294 | 294 | } else { |
295 | 295 | $preferences["gadget-$id"] = array( |
— | — | @@ -297,7 +297,7 @@ |
298 | 298 | // TODO the below means source and category IDs can't contain slashes or dashes, enforce this |
299 | 299 | 'section' => "gadgetsshared/gadgetrepo-$repoSource$sectionCat", |
300 | 300 | 'cssclass' => 'mw-gadgets-shared-pref', |
301 | | - 'name' => 'gadgetpref-' . md5($id), |
| 301 | + 'name' => 'gadgetpref-' . md5( $id ), |
302 | 302 | // 'default' isn't in here by design: we don't want |
303 | 303 | // enabledByDefault to be honored across wikis |
304 | 304 | ); |