From 36f9480883eaa4daa646c9e92caaaa3e91c119a3 Mon Sep 17 00:00:00 2001 From: Belle Aerni Date: Sat, 14 Jan 2023 14:11:50 -0800 Subject: [PATCH] Fix typos in ftp.php --- src/library/Box/Ftp.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/library/Box/Ftp.php b/src/library/Box/Ftp.php index bd5cfa171..9fdfb1300 100644 --- a/src/library/Box/Ftp.php +++ b/src/library/Box/Ftp.php @@ -33,7 +33,7 @@ class Box_Ftp //Check if possible to use ftp functions. if (!extension_loaded('ftp')) { - throw new \Box_Exception('The ftp PHP extension is not available'); + throw new \Box_Exception('The FTP PHP extension is not available'); } // Set defaults: @@ -81,11 +81,11 @@ class Box_Ftp } if ( ! $this->link ) { - throw new \Box_Exception('Failed to connect to FTP Server :host : :port',array(':host'=>$this->options['hostname'], ':port'=>$this->options['port'])); + throw new \Box_Exception('Failed to connect to FTP server :host : :port',array(':host'=>$this->options['hostname'], ':port'=>$this->options['port'])); } if ( ! @ftp_login($this->link,$this->options['username'], $this->options['password']) ) { - throw new \Box_Exception('FTP Username/Password incorrect for :usernmae', array(':username'=>$this->options['username'])); + throw new \Box_Exception('FTP username or password incorrect for :username', array(':username'=>$this->options['username'])); } //Set the Connection to use Passive FTP