From ad5b725537f07d4745a4535920adb4957efeb79e Mon Sep 17 00:00:00 2001 From: preecej Date: Wed, 27 Oct 2010 03:30:50 +0000 Subject: [PATCH] moved SMW extension declarations to fix autocompletion and premture value svn path=/; revision=80 --- preecej/semantic_wiki/LocalSettings.php | 47 ++++++++++++------------- 1 file changed, 22 insertions(+), 25 deletions(-) diff --git a/preecej/semantic_wiki/LocalSettings.php b/preecej/semantic_wiki/LocalSettings.php index 9659acb..7da811b 100644 --- a/preecej/semantic_wiki/LocalSettings.php +++ b/preecej/semantic_wiki/LocalSettings.php @@ -30,31 +30,6 @@ if ( $wgCommandLineMode ) { } } - - -# BEGIN 09/30/10: Justin Preece - added for Semantic MediaWiki and related extensions - -# added for Semantic public notification value recommended by Semantic MediaWiki -$wgServerName = "palea.cgrb.oregonstate.edu"; - -# Semantic MediaWiki extension -include_once("$IP/extensions/SemanticMediaWiki/SemanticMediaWiki.php"); -enableSemantics($wgServerName); - -# Semantic Forms extension -include_once("$IP/extensions/SemanticForms/SemanticForms.php"); -$sfgAutocompletionURLs['remote_species'] = 'http://palea.cgrb.oregonstate.edu/AnnoWiki/prototyping/remote_autocomplete.php?q='; - -# Data Transfer extension -include_once("$IP/extensions/DataTransfer/DataTransfer.php"); - -# External Data extension -include_once("$IP/extensions/ExternalData/ExternalData.php"); - -# END 09/30/10: Justin Preece - added for Semantic MediaWiki and related extensions - - - ## Uncomment this to disable output compression # $wgDisableOutputCompression = true; @@ -154,6 +129,28 @@ $wgRightsIcon = ""; $wgDiff3 = "/usr/bin/diff3"; +# BEGIN 10/26/10: Justin Preece - Semantic MediaWiki and related extensions +# (moved from top of file to address premature reference to $wgScriptPath) + +# added for Semantic public notification value recommended by Semantic MediaWiki +$wgServerName = "palea.cgrb.oregonstate.edu"; + +# Semantic MediaWiki extension +include_once("$IP/extensions/SemanticMediaWiki/SemanticMediaWiki.php"); +enableSemantics($wgServerName); + +# Semantic Forms extension +include_once("$IP/extensions/SemanticForms/SemanticForms.php"); +$sfgAutocompletionURLs['remote_species'] = 'http://palea.cgrb.oregonstate.edu/AnnoWiki/prototyping/remote_autocomplete.php?q='; + +# Data Transfer extension +include_once("$IP/extensions/DataTransfer/DataTransfer.php"); + +# External Data extension +include_once("$IP/extensions/ExternalData/ExternalData.php"); + +# END 10/26/10: Justin Preece - Semantic MediaWiki and related extensions + # When you make changes to this configuration file, this will make # sure that cached pages are cleared. $wgCacheEpoch = max( $wgCacheEpoch, gmdate( 'YmdHis', @filemtime( __FILE__ ) ) ); -- 2.34.1