CLI export

ZIP export, OPML export.
Corrected height of feeds select in Pafat theme.
https://github.com/FreshRSS/FreshRSS/pull/1338
https://github.com/FreshRSS/FreshRSS/issues/1039
https://github.com/FreshRSS/FreshRSS/issues/1277
This commit is contained in:
Alexandre Alapetite
2016-10-23 13:37:48 +02:00
parent 6d42acf5fd
commit fcb9280fc8
10 changed files with 128 additions and 45 deletions

View File

@@ -10,7 +10,7 @@ Minz_Configuration::register('system',
DATA_PATH . '/config.php',
DATA_PATH . '/config.default.php');
FreshRSS_Context::$system_conf = Minz_Configuration::get('system');
Minz_Translate::init();
Minz_Translate::init('en');
FreshRSS_Context::$isCli = true;
@@ -39,6 +39,6 @@ function cliInitUser($username) {
}
function done($ok) {
echo 'Result: ', ($ok ? 'success' : 'fail'), ".\n";
fwrite(STDERR, 'Result: ' . ($ok ? 'success' : 'fail') . "\n");
exit($ok ? 0 : 1);
}