aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/configureController.php
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2013-07-27 13:58:58 +0200
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2013-07-27 13:58:58 +0200
commit22febc135134511b43a8543ea45c49c7aeec6f84 (patch)
treee2596663533d36ec017fc1c7e8730245d6de0d19 /app/controllers/configureController.php
parentc4dcda6b47594a543046602056c5b7c27df70e39 (diff)
Fix issue #101 : option interdiction anonymes
Ajout d'une option pour interdire la lecture anonyme (interdit par défaut) Correction de l'internationalisation pour la pagination des logs
Diffstat (limited to 'app/controllers/configureController.php')
-rwxr-xr-xapp/controllers/configureController.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/controllers/configureController.php b/app/controllers/configureController.php
index ce53e1040..b91582520 100755
--- a/app/controllers/configureController.php
+++ b/app/controllers/configureController.php
@@ -147,6 +147,7 @@ class configureController extends ActionController {
$sort = Request::param ('sort_order', 'low_to_high');
$old = Request::param ('old_entries', 3);
$mail = Request::param ('mail_login', false);
+ $anon = Request::param ('anon_access', 'no');
$openArticle = Request::param ('mark_open_article', 'no');
$openSite = Request::param ('mark_open_site', 'no');
$scroll = Request::param ('mark_scroll', 'no');
@@ -161,6 +162,7 @@ class configureController extends ActionController {
$this->view->conf->_sortOrder ($sort);
$this->view->conf->_oldEntries ($old);
$this->view->conf->_mailLogin ($mail);
+ $this->view->conf->_anonAccess ($anon);
$this->view->conf->_markWhen (array (
'article' => $openArticle,
'site' => $openSite,
@@ -178,6 +180,7 @@ class configureController extends ActionController {
'sort_order' => $this->view->conf->sortOrder (),
'old_entries' => $this->view->conf->oldEntries (),
'mail_login' => $this->view->conf->mailLogin (),
+ 'anon_access' => $this->view->conf->anonAccess (),
'mark_when' => $this->view->conf->markWhen (),
'url_shaarli' => $this->view->conf->urlShaarli (),
);