Explorar o código

Merge pull request #1282 from hestiacp/fix/2020-issue_with_translation_string

Update /restart/server/index.php
Kristan Kenney %!s(int64=5) %!d(string=hai) anos
pai
achega
e2e40d3dea
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      web/restart/system/index.php

+ 1 - 1
web/restart/system/index.php

@@ -27,7 +27,7 @@ if (isset($_GET['system_reset_token']) && is_numeric($_GET['system_reset_token']
     if ($_SESSION['user'] == 'admin') {
     if ($_SESSION['user'] == 'admin') {
         if (!empty($_GET['hostname'])) {
         if (!empty($_GET['hostname'])) {
             touch($reset_token_file);
             touch($reset_token_file);
-            $_SESSION['error_msg'] = __('The system is going down for reboot NOW!');
+            $_SESSION['error_msg'] = _('The system is going down for reboot NOW!');
             exec(HESTIA_CMD . "v-restart-system yes", $output, $return_var);
             exec(HESTIA_CMD . "v-restart-system yes", $output, $return_var);
         }
         }
         unset($output);
         unset($output);