Index: trunk/extensions/SemanticMediaWiki/includes/SMW_Setup.php |
— | — | @@ -53,9 +53,11 @@ |
54 | 54 | ); |
55 | 55 | |
56 | 56 | // Initialize base namespace for URIs in data exports: |
57 | | - if ( $namespace === null ) { // fallback (bad because data URL will change depending on client URL) |
58 | | - wfWarn( 'You should be providing the domain name to enableSemantics()' ); |
59 | | - $namespace = parse_url( $wgServer, PHP_URL_HOST ); |
| 57 | + if ( $namespace === null ) { |
| 58 | + die ( 'You should be providing the domain name to enableSemantics()' ); |
| 59 | + // fallback (bad because data URL will change depending on client URL) |
| 60 | +// wfWarn( 'You should be providing the domain name to enableSemantics()' ); |
| 61 | +// $namespace = parse_url( $wgServer, PHP_URL_HOST ); |
60 | 62 | } |
61 | 63 | if ( !$complete && ( $smwgNamespace !== '' ) ) { |
62 | 64 | // The dot tells that the domain is not complete. It will be completed |