Skip to content

Commit

Permalink
Use the same parameter order like backup().
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed May 25, 2017
1 parent 7e19c1d commit d281022
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion framework/Backup/lib/Horde/Backup/Reader.php
Expand Up @@ -93,7 +93,7 @@ public function listBackups()
* @return \Horde\Backup\Collection[] All restored object collections.
*/
public function restore(
array $users = array(), $applications = array()
array $applications = array(), $users = array()
)
{
if ($users) {
Expand Down
2 changes: 1 addition & 1 deletion horde/lib/Cli/Backup.php
Expand Up @@ -163,7 +163,7 @@ protected function _backup($dir, $apps, $users)
protected function _restore($dir, $apps, $users)
{
$reader = new Reader($dir);
foreach ($reader->restore($users, $apps) as $app => $collections) {
foreach ($reader->restore($apps, $users) as $app => $collections) {
foreach ($collections as $collection) {
$this->_registry->callAppMethod(
$app, 'restore', array('args' => array($collection))
Expand Down

0 comments on commit d281022

Please sign in to comment.