More singularization and correct file names.
This commit is contained in:
parent
8ba479e51f
commit
19d352619e
11 changed files with 17 additions and 17 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue