Index: trunk/phase3/languages/Language.php |
— | — | @@ -2134,6 +2134,13 @@ |
2135 | 2135 | |
2136 | 2136 | # Replace spaces with underscores in namespace names |
2137 | 2137 | $cache['namespaceNames'] = str_replace( ' ', '_', $cache['namespaceNames'] ); |
| 2138 | + |
| 2139 | + # And do the same for specialpage aliases. $page is an array. |
| 2140 | + foreach ( $cache['specialPageAliases'] as &$page ) { |
| 2141 | + $page = str_replace( ' ', '_', $page ); |
| 2142 | + } |
| 2143 | + # Decouple the reference to prevent accidental damage |
| 2144 | + unset($page); |
2138 | 2145 | |
2139 | 2146 | # Save to both caches |
2140 | 2147 | self::$mLocalisationCache[$code] = $cache; |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -262,6 +262,7 @@ |
263 | 263 | * Fix regression -- missing feed links in sidebar on Special:Recentchanges |
264 | 264 | * (bug 12371) Handle more namespace case variants in namespaceDupes.php |
265 | 265 | * (bug 12380) Bot-friendly EditPage::spamPage |
| 266 | +* (bug 8066) Spaces can't be entered in special page aliases |
266 | 267 | |
267 | 268 | == Parser changes in 1.12 == |
268 | 269 | |