aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc
diff options
context:
space:
mode:
Diffstat (limited to 'inc')
-rwxr-xr-xinc/poche/Poche.class.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/inc/poche/Poche.class.php b/inc/poche/Poche.class.php
index 15d83bfe..ea196ce2 100755
--- a/inc/poche/Poche.class.php
+++ b/inc/poche/Poche.class.php
@@ -450,6 +450,7 @@ class Poche
450 $token = $this->user->getConfigValue('token'); 450 $token = $this->user->getConfigValue('token');
451 $http_auth = (isset($_SERVER['PHP_AUTH_USER']) || isset($_SERVER['REMOTE_USER'])) ? true : false; 451 $http_auth = (isset($_SERVER['PHP_AUTH_USER']) || isset($_SERVER['REMOTE_USER'])) ? true : false;
452 $only_user = ($this->store->listUsers() > 1) ? false : true; 452 $only_user = ($this->store->listUsers() > 1) ? false : true;
453 $https = substr(Tools::getPocheUrl(), 0, 5) == 'https';
453 $tpl_vars = array( 454 $tpl_vars = array(
454 'themes' => $themes, 455 'themes' => $themes,
455 'languages' => $languages, 456 'languages' => $languages,
@@ -462,7 +463,8 @@ class Poche
462 'token' => $token, 463 'token' => $token,
463 'user_id' => $this->user->getId(), 464 'user_id' => $this->user->getId(),
464 'http_auth' => $http_auth, 465 'http_auth' => $http_auth,
465 'only_user' => $only_user 466 'only_user' => $only_user,
467 'https' => $https
466 ); 468 );
467 Tools::logm('config view'); 469 Tools::logm('config view');
468 break; 470 break;