]> _ Git - cubist_cms-back.git/commitdiff
wait #5700 @1
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 13 Feb 2023 17:05:54 +0000 (18:05 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 13 Feb 2023 17:05:54 +0000 (18:05 +0100)
src/app/Magic/Models/ExternalServer.php

index 7ef094dd3300594c1c89b2dcf98d0d504b1fdc84..af75dde9b81431633b5460aae58941e1d160b91c 100644 (file)
@@ -19,7 +19,7 @@ class ExternalServer extends CubistMagicAbstractModel implements IServer
      */
     public static $_servers = null;
 
-    protected static $_defaultPorts = ['sftp' => 22, 'ftp' => 21, 'ftpes' => 21, 'ftps' => 990];
+    protected static $_defaultPorts = ['SFTP' => 22, 'FTP' => 21, 'FTPES' => 21, 'FTPS' => 990];
 
     public function setFields()
     {
@@ -94,7 +94,7 @@ class ExternalServer extends CubistMagicAbstractModel implements IServer
     {
         if (in_array($this->getProtocol(), $this->getFTPProtocols())) {
             return new FTP($this);
-        } else if ($this->getProtocol() === 'sftp') {
+        } else if ($this->getProtocol() === 'SFTP') {
             return new SFTP($this);
         }
         return null;