aboutsummaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2019-11-12 10:19:57 +0100
committerGravatar GitHub <noreply@github.com> 2019-11-12 10:19:57 +0100
commit09c088c62ece3b17615fb4e2addfa16663bb334f (patch)
tree9fe5a64e52711524bd6c327cd9db02dca83065a5 /cli
parent91cb165829badde07c42a002215cf52779d891b6 (diff)
parent874fce6656ce0a4fb144af672e8a31f1ec5f64f5 (diff)
Merge pull request #2655 from FreshRSS/dev1.15.2
FreshRSS 1.15.2
Diffstat (limited to 'cli')
-rw-r--r--cli/_cli.php2
-rwxr-xr-xcli/do-install.php2
-rwxr-xr-xcli/user-info.php2
3 files changed, 3 insertions, 3 deletions
diff --git a/cli/_cli.php b/cli/_cli.php
index dec244bc3..4e1188428 100644
--- a/cli/_cli.php
+++ b/cli/_cli.php
@@ -37,7 +37,7 @@ function cliInitUser($username) {
if (FreshRSS_Context::$user_conf == null) {
fail('FreshRSS error: invalid configuration for user: ' . $username . "\n");
}
- new Minz_ModelPdo($username);
+ Minz_Session::_param('currentUser', $username);
return $username;
}
diff --git a/cli/do-install.php b/cli/do-install.php
index fa6bac8c8..16ac833ea 100755
--- a/cli/do-install.php
+++ b/cli/do-install.php
@@ -89,7 +89,7 @@ if (function_exists('opcache_reset')) {
Minz_Configuration::register('system', DATA_PATH . '/config.php', FRESHRSS_PATH . '/config.default.php');
FreshRSS_Context::$system_conf = Minz_Configuration::get('system');
-Minz_Session::_param('currentUser', $config['default_user']);
+Minz_Session::_param('currentUser', '_'); //Default user
$ok = false;
try {
diff --git a/cli/user-info.php b/cli/user-info.php
index aa4db7c2f..f56bd9aa5 100755
--- a/cli/user-info.php
+++ b/cli/user-info.php
@@ -43,7 +43,7 @@ if (array_key_exists('header', $options)) {
foreach ($users as $username) {
$username = cliInitUser($username);
- $catDAO = FreshRSS_Factory::createCategoryDao();
+ $catDAO = FreshRSS_Factory::createCategoryDao($username);
$feedDAO = FreshRSS_Factory::createFeedDao($username);
$entryDAO = FreshRSS_Factory::createEntryDao($username);
$tagDAO = FreshRSS_Factory::createTagDao($username);