r97089 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r97088‎ | r97089 | r97090 >
Date:19:26, 14 September 2011
Author:jeroendedauw
Status:deferred
Tags:
Comment:
just die, since wfWarn doesn't work here. bug 30897
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/includes/SMW_Setup.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/includes/SMW_Setup.php
@@ -53,9 +53,11 @@
5454 );
5555
5656 // 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 );
6062 }
6163 if ( !$complete && ( $smwgNamespace !== '' ) ) {
6264 // The dot tells that the domain is not complete. It will be completed