diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2016-11-19 22:43:14 +0300 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2016-11-19 22:50:42 +0300 |
commit | f98a51cd0199faecb13dda20a0d2a901222256a9 (patch) | |
tree | 2849d2092ff49dbe5ea12f4ec9f7c289b0f5bf8a /modules/pkgs/mediawiki | |
parent | c5765622883601fc1fd51561139a53a861197088 (diff) | |
download | nixsap-f98a51cd0199faecb13dda20a0d2a901222256a9.tar.gz |
mediawiki: $_ENV -> getenv()
$_ENV stopped working in CLI
Diffstat (limited to 'modules/pkgs/mediawiki')
-rw-r--r-- | modules/pkgs/mediawiki/default.nix | 5 |
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 |