summaryrefslogtreecommitdiff
path: root/app/Controllers/userController.php
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-10-20 18:45:22 +0200
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-10-20 18:45:22 +0200
commit1a22a87fb1b1fcb61d201de399c33c2185dc1f6e (patch)
treeb0a9a2fb19b6cf01be8496131b4e7d552137835c /app/Controllers/userController.php
parentad92dd7dae35e7205da3172d4ba35ea01da2bc8b (diff)
Use FreshRSS_Context::$conf only
- Replace $this->view->conf in controllers - Replace $this->conf in views
Diffstat (limited to 'app/Controllers/userController.php')
-rw-r--r--app/Controllers/userController.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/app/Controllers/userController.php b/app/Controllers/userController.php
index d5c90a382..61d33437d 100644
--- a/app/Controllers/userController.php
+++ b/app/Controllers/userController.php
@@ -42,9 +42,9 @@ class FreshRSS_user_Controller extends Minz_ActionController {
$passwordPlain = '';
$passwordHash = preg_replace('/^\$2[xy]\$/', '\$2a\$', $passwordHash); //Compatibility with bcrypt.js
$ok &= ($passwordHash != '');
- $this->view->conf->_passwordHash($passwordHash);
+ FreshRSS_Context::$conf->_passwordHash($passwordHash);
}
- Minz_Session::_param('passwordHash', $this->view->conf->passwordHash);
+ Minz_Session::_param('passwordHash', FreshRSS_Context::$conf->passwordHash);
$passwordPlain = Minz_Request::param('apiPasswordPlain', '', true);
if ($passwordPlain != '') {
@@ -55,17 +55,17 @@ class FreshRSS_user_Controller extends Minz_ActionController {
$passwordPlain = '';
$passwordHash = preg_replace('/^\$2[xy]\$/', '\$2a\$', $passwordHash); //Compatibility with bcrypt.js
$ok &= ($passwordHash != '');
- $this->view->conf->_apiPasswordHash($passwordHash);
+ FreshRSS_Context::$conf->_apiPasswordHash($passwordHash);
}
// TODO: why do we need of hasAccess here?
if (FreshRSS_Auth::hasAccess('admin')) {
- $this->view->conf->_mail_login(Minz_Request::param('mail_login', '', true));
+ FreshRSS_Context::$conf->_mail_login(Minz_Request::param('mail_login', '', true));
}
- $email = $this->view->conf->mail_login;
+ $email = FreshRSS_Context::$conf->mail_login;
Minz_Session::_param('mail', $email);
- $ok &= $this->view->conf->save();
+ $ok &= FreshRSS_Context::$conf->save();
if ($email != '') {
$personaFile = DATA_PATH . '/persona/' . $email . '.txt';
@@ -113,9 +113,9 @@ class FreshRSS_user_Controller extends Minz_ActionController {
$db = Minz_Configuration::dataBase();
require_once(APP_PATH . '/SQL/install.sql.' . $db['type'] . '.php');
- $new_user_language = Minz_Request::param('new_user_language', $this->view->conf->language);
- if (!in_array($new_user_language, $this->view->conf->availableLanguages())) {
- $new_user_language = $this->view->conf->language;
+ $new_user_language = Minz_Request::param('new_user_language', FreshRSS_Context::$conf->language);
+ if (!in_array($new_user_language, FreshRSS_Context::$conf->availableLanguages())) {
+ $new_user_language = FreshRSS_Context::$conf->language;
}
$new_user_name = Minz_Request::param('new_user_name');