Skip to content

Commit

Permalink
Fixed undefined method error in SitesCommand#massUpdate
Browse files Browse the repository at this point in the history
  • Loading branch information
Sara McCutcheon committed May 9, 2016
1 parent 44e35d9 commit 2f13af9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ All notable changes to this project starting with the 0.6.0 release will be docu
- Fixed undefined-variable bug which appears when a user has one machine token saved but is logged out. (#1053)
- Multiline option details will now fully appear in help output. (#1055)
- `TERMINUS_PLUGINS_DIR` now overrides the plugin directory appropriately. (#1062)
- Undefined method error while running `sites mass-update` has been fixed. (#1064)

## [0.11.1] - 2016-03-30

Expand Down
4 changes: 2 additions & 2 deletions php/Terminus/Commands/SitesCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -451,9 +451,9 @@ public function massUpdate($args, $assoc_args) {
if (!$confirmed) {
continue; // User says No, go back to start.
}
// Backup the DB so the client can restore if something goes wrong.
// Back up the site so it may be restored should something go awry
$this->log()->info('Backing up {site}.', $context);
$backup = $env->createBackup(array('element'=>'all'));
$backup = $env->backups->create(['element' => 'all',]);
// Only continue if the backup was successful.
if ($backup) {
$this->log()->info('Backup of {site} created.', $context);
Expand Down

0 comments on commit 2f13af9

Please sign in to comment.