forgot to use the new distro-editor variable

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p) 2015-08-13 15:45:53 +02:00
parent 4da3a87772
commit 3b96efc04d

View File

@ -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);