Skip to content

Commit

Permalink
v3.3.2 - Codebase Improvements
Browse files Browse the repository at this point in the history
Several code improvments where made, mostly adding Exception throwing where necessary and better merge with defaults for quickmode deploy.ini settings
  • Loading branch information
banago committed Mar 1, 2014
1 parent d5036b8 commit 35b3822
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions phploy
Original file line number Diff line number Diff line change
Expand Up @@ -391,13 +391,7 @@ class PHPloy
throw new Exception("Oh Snap: Could not login to {$server['host']} (Tried to login as {$server['user']}).\n");
}

$passive = true;
if (isset($server['passive']) and (bool) $server['passive'] == false)
{
$passive = false;
}

ftp_pasv($connection, $passive);
ftp_pasv($connection, $server['passive']);

if (ftp_chdir($connection, $server['path'])) {
$this->connection = $connection;
Expand Down

0 comments on commit 35b3822

Please sign in to comment.