Robert Vogel has submitted this change and it was merged.

Change subject: change include order, enable semantic before constants are used 
to prevent errors set smwgNamespaceIndex before enablesemantic
......................................................................


change include order, enable semantic before constants are used to prevent 
errors
set smwgNamespaceIndex before enablesemantic

Change-Id: I94a8dc0321a988cb6aa61baf2612184e84630848
---
M build/release/build_tarballs.sh
1 file changed, 4 insertions(+), 2 deletions(-)

Approvals:
  Robert Vogel: Verified; Looks good to me, approved



diff --git a/build/release/build_tarballs.sh b/build/release/build_tarballs.sh
index 0f1ec69..5c101ff 100644
--- a/build/release/build_tarballs.sh
+++ b/build/release/build_tarballs.sh
@@ -136,7 +136,6 @@
 /*
 cp LocalSettings.BlueSpiceSemantic.php.template 
../LocalSettings.BlueSpiceSemantic.php
 echo 'require_once "LocalSettings.BlueSpiceSemantic.php";' | tee --append 
../LocalSettings.php
-echo 'enableSemantics( 'localhost' );' | tee --append ../LocalSettings.php
 */
 //finaly append to bottom of LocalSettings.php, set host properly and Activate 
smw with: enableSemantics( 'localhost' );
 
@@ -152,8 +151,11 @@
 require_once "\$IP/extensions/SemanticResultFormats/SemanticResultFormats.php";
 require_once "\$IP/extensions/BSSMWConnector/BSSMWConnector.php";
 
-if ( !defined( \$GLOBALS[ 'smwgNamespaceIndex' ] ) )
+if ( !defined( \$GLOBALS[ 'smwgNamespaceIndex' ] ) ) {
        \$GLOBALS[ 'smwgNamespaceIndex' ] = 700;
+}
+
+enableSemantics( 'localhost' );
 
 \$GLOBALS[ 'smwgPageSpecialProperties' ] = array_merge(
        \$GLOBALS[ 'smwgPageSpecialProperties' ],

-- 
To view, visit https://gerrit.wikimedia.org/r/300511
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I94a8dc0321a988cb6aa61baf2612184e84630848
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/BSSMWConnector
Gerrit-Branch: master
Gerrit-Owner: Ljonka <[email protected]>
Gerrit-Reviewer: Robert Vogel <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to