aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/pkgs/mediawiki/default.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/pkgs/mediawiki/default.nix b/modules/pkgs/mediawiki/default.nix
index ef606f0..92aaaeb 100644
--- a/modules/pkgs/mediawiki/default.nix
+++ b/modules/pkgs/mediawiki/default.nix
@@ -46,8 +46,9 @@ in pkgs.stdenv.mkDerivation rec {
cat <<'EOF' > $out/LocalSettings.php
<?php
- if (isset($_ENV['MEDIAWIKI_LOCAL_SETTINGS'])) {
- require_once ($_ENV['MEDIAWIKI_LOCAL_SETTINGS']);
+ $MEDIAWIKI_LOCAL_SETTINGS = getenv('MEDIAWIKI_LOCAL_SETTINGS');
+ if (isset($MEDIAWIKI_LOCAL_SETTINGS)) {
+ require_once ($MEDIAWIKI_LOCAL_SETTINGS);
};
?>
EOF