X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=index.php;h=de993f14ed0eeface43ccbc3988c4f7f899f694b;hb=a3130d2c2f27052710d4dbd51d0001190b19b383;hp=b4c4347a40c46addc904079ae31f36b6b08da707;hpb=2a1292359b79ec77257583ea9d97891dfd2ddb1b;p=github%2Fshaarli%2FShaarli.git diff --git a/index.php b/index.php index b4c4347a..de993f14 100644 --- a/index.php +++ b/index.php @@ -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) {