Commit db63bc61 authored by alexpott's avatar alexpott

Issue #2300469 by penyaskito | dawehner: Fixed makeBackup() is called without...

Issue #2300469 by penyaskito | dawehner: Fixed makeBackup() is called without a to parameter in Drupal\Core\Updater\Updater.
parent 5c89f2da
......@@ -8,6 +8,7 @@
namespace Drupal\Core\Updater;
use Drupal\Core\FileTransfer\FileTransferException;
use Drupal\Core\FileTransfer\FileTransferInterface;
/**
* Defines the base class for Updaters used in Drupal.
......@@ -184,7 +185,7 @@ public function update(&$filetransfer, $overrides = array()) {
// Take a Backup.
if ($args['make_backup']) {
$this->makeBackup($args['install_dir'], $args['backup_dir']);
$this->makeBackup($filetransfer, $args['install_dir'], $args['backup_dir']);
}
if (!$this->name) {
......@@ -325,9 +326,16 @@ public function makeWorldReadable(&$filetransfer, $path, $recursive = TRUE) {
/**
* Performs a backup.
*
* @param \Drupal\Core\FileTransfer\FileTransferInterface $filetransfer
* Object which is a child of FileTransfer.
* @param string $from
* The file path to copy from.
* @param string $to
* The file path to copy to.
*
* @todo Not implemented.
*/
public function makeBackup(&$filetransfer, $from, $to) {
public function makeBackup(FileTransferInterface $filetransfer, $from, $to) {
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment