From 0382f4b15271a8912af59d6f08eee33f23c0cf56 Mon Sep 17 00:00:00 2001 From: Marien Fressinaud Date: Fri, 8 Nov 2013 10:34:27 +0100 Subject: Issue #235: ajout d'une condition pour Persona MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Si la connexion n'est pas paramétrée, on ne charge pas Persona --- app/views/javascript/main.phtml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/views/javascript/main.phtml') diff --git a/app/views/javascript/main.phtml b/app/views/javascript/main.phtml index 662d86c80..cdf8475bd 100644 --- a/app/views/javascript/main.phtml +++ b/app/views/javascript/main.phtml @@ -23,7 +23,8 @@ if ($mail != 'null') { $mail = '"' . $mail . '"'; } - echo ',url_freshrss="', _url ('index', 'index'), '",', + echo ',use_persona=', login_is_conf ($this->conf) ? 'true' : 'false', + ',url_freshrss="', _url ('index', 'index'), '",', 'url_login="', _url ('index', 'login'), '",', 'url_logout="', _url ('index', 'logout'), '",', 'current_user_mail=', $mail, ";\n"; -- cgit v1.2.3