Skip to content

Commit

Permalink
Set site domain into a const
Browse files Browse the repository at this point in the history
  • Loading branch information
alistair3149 committed Dec 31, 2024
1 parent d4e84a3 commit 0b4fcb2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions config/LocalSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
exit;
}

// Use dev.starcitizen.tools for now as this image is used in development
const SCT_DOMAIN = 'dev.starcitizen.tools';

/**
* Invalidate cache
*
Expand Down Expand Up @@ -71,7 +74,7 @@
* Server/site settings
*/
$wgSitename = 'Star Citizen Wiki';
$wgServer = 'https://starcitizen.tools';
$wgServer = 'https://' . SCT_DOMAIN;
// Short URL paths
$wgArticlePath = '/$1';
$wgScriptPath = '';
Expand Down Expand Up @@ -887,7 +890,7 @@
* @see https://github.com/SemanticMediaWiki/SemanticMediaWiki
*/
// Required to enable SMW
enableSemantics( 'starcitizen.tools' );
enableSemantics( SCT_DOMAIN );
// Set default property type to Text
// Because we use SMW property for displaying data through templates mainly
$smwgPDefaultType = '_txt';
Expand Down

0 comments on commit 0b4fcb2

Please sign in to comment.