More singularization and correct file names.

This commit is contained in:
Dane Everitt 2017-02-12 16:03:17 -05:00
parent 8ba479e51f
commit 19d352619e
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
11 changed files with 17 additions and 17 deletions

View file

@ -230,13 +230,13 @@ class ServerController extends Controller
->first();
$allocation = $server->allocations->pop();
$serverVariables = [
$ServerVariable = [
'{{SERVER_MEMORY}}' => $server->memory,
'{{SERVER_IP}}' => $allocation->ip,
'{{SERVER_PORT}}' => $allocation->port,
];
$processed = str_replace(array_keys($serverVariables), array_values($serverVariables), $server->startup);
$processed = str_replace(array_keys($ServerVariable), array_values($ServerVariable), $server->startup);
foreach ($variables as &$variable) {
$replace = ($variable->user_viewable === 1) ? $variable->a_serverValue : '[hidden]';
$processed = str_replace('{{' . $variable->env_variable . '}}', $replace, $processed);