Index: trunk/extensions/SemanticMediaWiki/includes/SMW_GlobalFunctions.php |
— | — | @@ -85,11 +85,16 @@ |
86 | 86 | * This function also sets up all autoloading, such that all SMW classes are available |
87 | 87 | * as early as possible. Moreover, jobs and special pages are registered. |
88 | 88 | */ |
89 | | -function enableSemantics($namespace = '', $complete = false) { |
| 89 | +function enableSemantics($namespace = null, $complete = false) { |
90 | 90 | global $smwgIP, $smwgNamespace, $wgExtensionFunctions, $wgAutoloadClasses, $wgSpecialPages, $wgSpecialPageGroups, $wgHooks, $wgExtensionMessagesFiles, $wgJobClasses, $wgExtensionAliasesFiles; |
91 | 91 | // The dot tells that the domain is not complete. It will be completed |
92 | 92 | // in the Export since we do not want to create a title object here when |
93 | 93 | // it is not needed in many cases. |
| 94 | + if ($namespace === null) |
| 95 | + { |
| 96 | + $namespace = $wgServerName; |
| 97 | + } |
| 98 | + |
94 | 99 | if ( !$complete && ($smwgNamespace !== '') ) { |
95 | 100 | $smwgNamespace = '.' . $namespace; |
96 | 101 | } else { |