]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - index.php
Firefox Social title: Use document.title instead of RainTPL variable
[github/shaarli/Shaarli.git] / index.php
index 9025df58f03202aaad35c32c58160ebe902e30d9..de993f14ed0eeface43ccbc3988c4f7f899f694b 100644 (file)
--- a/index.php
+++ b/index.php
@@ -1021,7 +1021,7 @@ function renderPage($conf, $pluginManager, $LINKSDB, $history)
 
     // -------- User wants to see only untagged links (toggle)
     if (isset($_GET['untaggedonly'])) {
-        $_SESSION['untaggedonly'] = !$_SESSION['untaggedonly'];
+        $_SESSION['untaggedonly'] = empty($_SESSION['untaggedonly']);
 
         if (! empty($_SERVER['HTTP_REFERER'])) {
             $location = generateLocation($_SERVER['HTTP_REFERER'], $_SERVER['HTTP_HOST'], array('untaggedonly'));
@@ -1063,10 +1063,10 @@ function renderPage($conf, $pluginManager, $LINKSDB, $history)
     // -------- Display the Tools menu if requested (import/export/bookmarklet...)
     if ($targetPage == Router::$PAGE_TOOLS)
     {
-        $data = array(
+        $data = [
             'pageabsaddr' => index_url($_SERVER),
-            'sslenabled' => !empty($_SERVER['HTTPS'])
-        );
+            'sslenabled' => is_https($_SERVER),
+        ];
         $pluginManager->executeHooks('render_tools', $data);
 
         foreach ($data as $key => $value) {