Index: trunk/phase3/RELEASE-NOTES-1.19 |
— | — | @@ -245,6 +245,8 @@ |
246 | 246 | around a bug where not all styles were applied in Internet Explorer |
247 | 247 | * (bug 28936, bug 5280) Broken or invalid titles can't be removed from watchlist. |
248 | 248 | * (bug 34600) Older skins using useHeadElement=false were broken in 1.18 |
| 249 | +* (bug 34604) [mw.config] wgActionPaths should be an object instead of a numeral |
| 250 | + array. |
249 | 251 | |
250 | 252 | === API changes in 1.19 === |
251 | 253 | * Made action=edit less likely to return "unknownerror", by returning the actual error |
Index: trunk/phase3/includes/resourceloader/ResourceLoaderStartUpModule.php |
— | — | @@ -68,7 +68,9 @@ |
69 | 69 | 'wgScriptExtension' => $wgScriptExtension, |
70 | 70 | 'wgScript' => $wgScript, |
71 | 71 | 'wgVariantArticlePath' => $wgVariantArticlePath, |
72 | | - 'wgActionPaths' => $wgActionPaths, |
| 72 | + // Force object to avoid "empty" associative array from |
| 73 | + // becoming [] instead of {} in JS (bug 34604) |
| 74 | + 'wgActionPaths' => (object)$wgActionPaths, |
73 | 75 | 'wgServer' => $wgServer, |
74 | 76 | 'wgUserLanguage' => $context->getLanguage(), |
75 | 77 | 'wgContentLanguage' => $wgContLang->getCode(), |