CLI minor formatting

https://github.com/FreshRSS/FreshRSS/issues/1095
This commit is contained in:
Alexandre Alapetite committed 2016-10-24 21:58:22 +02:00
1 parent 835f3d746c
commit c8e5292ab7
2 files changed
+3 -4

No files matched your search

+1 -2
View File
@@ -35,8 +35,7 @@ $ok = FreshRSS_user_Controller::createUser($username,
'language' => empty($options['language']) ? '' : $options['language'], 'language' => empty($options['language']) ? '' : $options['language'],
'token' => empty($options['token']) ? '' : $options['token'], 'token' => empty($options['token']) ? '' : $options['token'],
), ),
!isset($options['no-default-feeds']) !isset($options['no-default-feeds']));
);
if (!$ok) { if (!$ok) {
fail('FreshRSS could not create user!'); fail('FreshRSS could not create user!');
+2 -2
View File
@@ -20,8 +20,8 @@ $importController = new FreshRSS_importExport_Controller();
$ok = false; $ok = false;
try { try {
$ok = $importController->exportFile(true, true, true, $ok = $importController->exportFile(true, true, true,
empty($options['max-feed-entries']) ? 100 : intval($options['max-feed-entries']), empty($options['max-feed-entries']) ? 100 : intval($options['max-feed-entries']),
$username); $username);
} catch (FreshRSS_ZipMissing_Exception $zme) { } catch (FreshRSS_ZipMissing_Exception $zme) {
fail('FreshRSS error: Lacking php-zip extension!'); fail('FreshRSS error: Lacking php-zip extension!');
} }