Skip to content

Commit

Permalink
pkp/pkp-lib#3462 Add import/export filter return function
Browse files Browse the repository at this point in the history
  • Loading branch information
defstat committed May 6, 2018
1 parent a97f1c6 commit 1494c44
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/importexport/users/UserImportExportPlugin.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,15 @@ function executeCLI($scriptName, &$args) {

switch ($command) {
case 'import':
$this->importUsers(file_get_contents($xmlFile), $journal, null);
$this->importUsers(file_get_contents($xmlFile), $journal, null, null);
return;
case 'export':
if ($xmlFile != '') {
if (empty($args)) {
file_put_contents($xmlFile, $this->exportAllUsers($journal, null));
file_put_contents($xmlFile, $this->exportAllUsers($journal, null, null));
return;
} else {
file_put_contents($xmlFile, $this->exportUsers($args, $journal, null));
file_put_contents($xmlFile, $this->exportUsers($args, $journal, null, null));
return;
}
}
Expand Down

0 comments on commit 1494c44

Please sign in to comment.