summaryrefslogtreecommitdiffstats
path: root/system/libraries
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2014-01-03 16:39:26 +0100
committerAndrey Andreev <narf@devilix.net>2014-01-03 16:39:26 +0100
commitb4c62180ea70fba546aa8fe1813685dd72e4a406 (patch)
tree399a51dd93051387c6a39628c333b2c49b6b0e44 /system/libraries
parent430b14cccd8e05de5b6b1268239e492ddea8f308 (diff)
FTP class improvements
- Make changedir()'s first parameter mandatory (optional doesn't make sense) - Fix a few typos (langfile included)
Diffstat (limited to 'system/libraries')
-rw-r--r--system/libraries/Ftp.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/system/libraries/Ftp.php b/system/libraries/Ftp.php
index 84ecf133c..4be2d0a21 100644
--- a/system/libraries/Ftp.php
+++ b/system/libraries/Ftp.php
@@ -214,10 +214,10 @@ class CI_FTP {
* Internally, this parameter is only used by the "mirror" function below.
*
* @param string $path
- * @param bool $supress_debug
+ * @param bool $suppress_debug
* @return bool
*/
- public function changedir($path = '', $supress_debug = FALSE)
+ public function changedir($path, $suppress_debug = FALSE)
{
if ($path === '' OR ! $this->_is_conn())
{
@@ -228,7 +228,7 @@ class CI_FTP {
if ($result === FALSE)
{
- if ($this->debug === TRUE && $supress_debug === FALSE)
+ if ($this->debug === TRUE && $suppress_debug === FALSE)
{
$this->_error('ftp_unable_to_changedir');
}
@@ -260,7 +260,7 @@ class CI_FTP {
{
if ($this->debug === TRUE)
{
- $this->_error('ftp_unable_to_makdir');
+ $this->_error('ftp_unable_to_mkdir');
}
return FALSE;
}