Index: trunk/extensions/Deployment/includes/filesystems/FtpFilesystem.php |
— | — | @@ -193,18 +193,24 @@ |
194 | 194 | } |
195 | 195 | } |
196 | 196 | |
197 | | - if ( $success && $this->exists( $path ) && !@ftp_rmdir( $this->link, $path ) ) { |
| 197 | + if ( $success && $this->exists( $path ) && !@ftp_rmdir( $this->connection, $path ) ) { |
198 | 198 | $success = false; |
199 | 199 | } |
200 | 200 | |
201 | | - return $success; |
| 201 | + return $success; |
202 | 202 | } |
203 | 203 | |
204 | 204 | /** |
205 | 205 | * @see Filesystem::doCopy |
206 | 206 | */ |
207 | 207 | protected function doCopy( $from, $to ) { |
| 208 | + $content = $this->get_contents( $from ); |
208 | 209 | |
| 210 | + if ( $content === false ) { |
| 211 | + return false; |
| 212 | + } |
| 213 | + |
| 214 | + return $this->writeToFile( $to, $content ); |
209 | 215 | } |
210 | 216 | |
211 | 217 | /** |
Index: trunk/extensions/Deployment/includes/filesystems/DirectFilesystem.php |
— | — | @@ -154,14 +154,14 @@ |
155 | 155 | $success = false; |
156 | 156 | } |
157 | 157 | |
158 | | - return $success; |
| 158 | + return $success; |
159 | 159 | } |
160 | 160 | |
161 | 161 | /** |
162 | 162 | * @see Filesystem::doCopy |
163 | 163 | */ |
164 | 164 | protected function doCopy( $from, $to ) { |
165 | | - |
| 165 | + return copy( $from, $to ); |
166 | 166 | } |
167 | 167 | |
168 | 168 | /** |