Explorar el Código

Updated core, terminal detection

markseu hace 3 años
padre
commit
2dac6846b1
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      system/extensions/core.php
  2. BIN
      system/extensions/install-language.bin

+ 2 - 2
system/extensions/core.php

@@ -3301,11 +3301,11 @@ class YellowToolbox {
     public function detectTerminalInformation() {
         $width = $height = 0;
         if (strtoupperu(substru(PHP_OS, 0, 3))=="WIN") {
-            exec("powershell $Host.UI.RawUI.WindowSize.Width", $outputLines, $returnStatus);
+            exec("powershell \$Host.UI.RawUI.WindowSize.Width", $outputLines, $returnStatus);
             if ($returnStatus==0 && !empty($outputLines)) {
                 $width = intval(end($outputLines));
             }
-            exec("powershell $Host.UI.RawUI.WindowSize.Height", $outputLines, $returnStatus);
+            exec("powershell \$Host.UI.RawUI.WindowSize.Height", $outputLines, $returnStatus);
             if ($returnStatus==0 && !empty($outputLines)) {
                 $height = intval(end($outputLines));
             }

BIN
system/extensions/install-language.bin