From ec4c8afceaff875dcdc563c157cac40628525acb Mon Sep 17 00:00:00 2001 From: 3wc <3wc.git@doesthisthing.work> Date: Fri, 18 Sep 2020 20:41:10 +0200 Subject: [PATCH] Customisable logo path --- .envrc.sample | 1 + LocalSettings.php.tmpl | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.envrc.sample b/.envrc.sample index 0f35ba8..597d314 100644 --- a/.envrc.sample +++ b/.envrc.sample @@ -7,6 +7,7 @@ export MEDIAWIKI_SITENAME="Example Wiki" export MEDIAWIKI_SITENAMESPACE="Example_Wiki" export MEDIAWIKI_EMAIL_CONTACT="info@wiki.example.com" export MEDIAWIKI_EMAIL_FROM="wiki@wiki.example.com" +export MEDIAWIKI_LOGO_FILE='$wgResourceBasePath/resources/assets/wiki.png' export DB_ROOT_PASSWORD_VERSION=v1 export DB_PASSWORD_VERSION=v1 diff --git a/LocalSettings.php.tmpl b/LocalSettings.php.tmpl index b5b8719..a015db0 100644 --- a/LocalSettings.php.tmpl +++ b/LocalSettings.php.tmpl @@ -39,7 +39,7 @@ $wgResourceBasePath = $wgScriptPath; ## The URL path to the logo. Make sure you change this from the default, ## or else you'll overwrite your logo when you upgrade! -$wgLogo = "$wgResourceBasePath/resources/assets/wiki.png"; +$wgLogo = "{{ env "MEDIAWIKI_LOGO_FILE" }}"; ## UPO means: this is also a user preference option