mirror of
https://github.com/wallabag/wallabag.git
synced 2025-08-01 17:38:38 +00:00
fix #1237, display a message instead of button when connections are not through https
This commit is contained in:
parent
66eab89252
commit
6056aaf076
7 changed files with 144 additions and 78 deletions
|
@ -450,6 +450,7 @@ class Poche
|
|||
$token = $this->user->getConfigValue('token');
|
||||
$http_auth = (isset($_SERVER['PHP_AUTH_USER']) || isset($_SERVER['REMOTE_USER'])) ? true : false;
|
||||
$only_user = ($this->store->listUsers() > 1) ? false : true;
|
||||
$https = substr(Tools::getPocheUrl(), 0, 5) == 'https';
|
||||
$tpl_vars = array(
|
||||
'themes' => $themes,
|
||||
'languages' => $languages,
|
||||
|
@ -462,7 +463,8 @@ class Poche
|
|||
'token' => $token,
|
||||
'user_id' => $this->user->getId(),
|
||||
'http_auth' => $http_auth,
|
||||
'only_user' => $only_user
|
||||
'only_user' => $only_user,
|
||||
'https' => $https
|
||||
);
|
||||
Tools::logm('config view');
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue