CLI option no-default-feeds

https://github.com/FreshRSS/FreshRSS/issues/1095
This commit is contained in:
Alexandre Alapetite
2016-10-24 20:29:08 +02:00
parent 879af85d3c
commit 1182129ce5
7 changed files with 50 additions and 5 deletions

View File

@@ -99,7 +99,7 @@ class FreshRSS_user_Controller extends Minz_ActionController {
$this->view->size_user = $entryDAO->size();
}
public static function createUser($new_user_name, $passwordPlain, $apiPasswordPlain, $userConfig = array()) {
public static function createUser($new_user_name, $passwordPlain, $apiPasswordPlain, $userConfig = array(), $insertDefaultFeeds = true) {
if (!is_array($userConfig)) {
$userConfig = array();
}
@@ -138,7 +138,7 @@ class FreshRSS_user_Controller extends Minz_ActionController {
}
if ($ok) {
$userDAO = new FreshRSS_UserDAO();
$ok &= $userDAO->createUser($new_user_name, $userConfig['language']);
$ok &= $userDAO->createUser($new_user_name, $userConfig['language'], $insertDefaultFeeds);
}
return $ok;
}