From 3b96efc04df66e4011f24e3cd76061f2a6f3f9b1 Mon Sep 17 00:00:00 2001 From: "Michael Kaufmann (d00p)" Date: Thu, 13 Aug 2015 15:45:53 +0200 Subject: [PATCH] forgot to use the new distro-editor variable Signed-off-by: Michael Kaufmann (d00p) --- admin_configfiles.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/admin_configfiles.php b/admin_configfiles.php index b1a13deb..9e4edceb 100644 --- a/admin_configfiles.php +++ b/admin_configfiles.php @@ -142,7 +142,7 @@ if ($userinfo['change_serversettings'] == '1') { break; case "file": if (array_key_exists('content', $action)) { - $commands_file = getFileContentContainer($action['content'], $replace_arr, $action['name']); + $commands_file = getFileContentContainer($action['content'], $replace_arr, $action['name'], $distro_editor); } elseif (array_key_exists('subcommands', $action)) { foreach ($action['subcommands'] as $fileaction) { if (array_key_exists('execute', $fileaction) && $fileaction['execute'] == "pre") { @@ -150,7 +150,7 @@ if ($userinfo['change_serversettings'] == '1') { } elseif (array_key_exists('execute', $fileaction) && $fileaction['execute'] == "post") { $commands_post .= $fileaction['content'] . "\n"; } elseif ($fileaction['type'] == 'file') { - $commands_file = getFileContentContainer($fileaction['content'], $replace_arr, $action['name']); + $commands_file = getFileContentContainer($fileaction['content'], $replace_arr, $action['name'], $distro_editor); } } } @@ -187,7 +187,7 @@ if ($userinfo['change_serversettings'] == '1') { } // helper functions -function getFileContentContainer($file_content, &$replace_arr, $realname) +function getFileContentContainer($file_content, &$replace_arr, $realname, $distro_editor) { $files = ""; $file_content = trim($file_content);