$smwgImportReqVersion

From semantic-mediawiki.org


Configuration parameter details:
Name $smwgImportReqVersion
Description Sets the contents import file version for legitimate files to be imported upon installation of Semantic MediaWiki
Default setting
1
Software Semantic MediaWiki
Since version
Until version still available
Configuration Installation
Keyword import vocabulary


$smwgImportReqVersion is a configuration parameter that sets the contents import file version for legitimate files to be imported upon installation of Semantic MediaWiki. Moreover legitimate files are created in the .json format and are located in the directory specified with configuration parameter $smwgImportFileDirsSets the contents import directory for legitimate files to be imported upon installation of Semantic MediaWiki. It was introduced in Semantic MediaWiki 2.5.0Released on 14 March 2017 and compatible with MW 1.23.0 - 1.29.x..1

Default setting[edit]

$smwgImportReqVersion = 1;

This means that by default legitimate files holding file version 1 will be imported upon installation of Semantic MediaWiki.

Changing the default setting[edit]

To modify the setting to this configuration parameter, add one of the following lines to your "LocalSettings.php" file after the enableSemantics() call:

Change to another file version
$smwgImportReqVersion = 2;

This means that legitimate files holding version 2 will be imported upon installation of Semantic MediaWiki.

Disable import of legitimate files
$smwgImportReqVersion = false;

This means that legitimate files will not be imported upon installation of Semantic MediaWiki.

See also[edit]

References

  1. ^  Semantic MediaWiki: GitHub pull request gh:smw:2289