Index: trunk/extensions/SemanticForms/includes/SF_LinkUtils.inc |
— | — | @@ -303,9 +303,13 @@ |
304 | 304 | // if it's in the main (blank) namespace, check for the |
305 | 305 | // file named with the word for "Main" in this language |
306 | 306 | wfLoadExtensionMessages('SemanticForms'); |
307 | | - $namespace = wfMsgForContent('sf_blank_namespace'); |
| 307 | + $namespace_label = wfMsgForContent('sf_blank_namespace'); |
| 308 | + } else { |
| 309 | + global $wgContLang; |
| 310 | + $namespace_labels = $wgContLang->getNamespaces(); |
| 311 | + $namespace_label = $namespace_labels[$namespace]; |
308 | 312 | } |
309 | | - $default_forms = self::getDefaultForms($namespace, NS_PROJECT); |
| 313 | + $default_forms = self::getDefaultForms($namespace_label, NS_PROJECT); |
310 | 314 | return $default_forms; |
311 | 315 | } |
312 | 316 | |