diff options
| author | 2013-11-08 10:34:27 +0100 | |
|---|---|---|
| committer | 2013-11-08 10:34:27 +0100 | |
| commit | 0382f4b15271a8912af59d6f08eee33f23c0cf56 (patch) | |
| tree | f068d4e07a72a8c8b1c3965b61ef0a18a343302d /app | |
| parent | fe0e980b0cc80ae0a42ed8479cf20be36636110c (diff) | |
Issue #235: ajout d'une condition pour Persona
Si la connexion n'est pas paramétrée, on ne charge pas Persona
Diffstat (limited to 'app')
| -rw-r--r-- | app/views/javascript/main.phtml | 3 |
1 files changed, 2 insertions, 1 deletions
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"; |
