]> git.immae.eu Git - github/shaarli/Shaarli.git/commitdiff
Fix variable in configure.php 596/head
authorArthurHoaro <arthur@hoa.ro>
Sun, 10 Jul 2016 08:42:21 +0000 (10:42 +0200)
committerArthurHoaro <arthur@hoa.ro>
Sun, 10 Jul 2016 08:42:21 +0000 (10:42 +0200)
index.php
tpl/configure.html

index b9576de8f989764ff7e9b57a5b1d0a32e972c77f..00012e2252f9ddd6461590ef2ab05251f35a935f 100644 (file)
--- a/index.php
+++ b/index.php
@@ -1159,6 +1159,7 @@ function renderPage($conf, $pluginManager)
             $PAGE->assign('timezone_form', $timezone_form);
             $PAGE->assign('timezone_js',$timezone_js);
             $PAGE->assign('private_links_default', $conf->get('privacy.default_private_links', false));
+            $PAGE->assign('session_protection_disabled', $conf->get('security.session_protection_disabled', false));
             $PAGE->assign('enable_rss_permalinks', $conf->get('feed.rss_permalinks', false));
             $PAGE->assign('enable_update_check', $conf->get('updates.check_updates', true));
             $PAGE->assign('hide_public_links', $conf->get('privacy.hide_public_links', false));
index ad9a2085d311e6a0aff9425a71acd9c77cddb771..983bcd085125923d58806d59f4f87af302b05122 100644 (file)
@@ -36,7 +36,7 @@
         <td><b>Security:</b></td>
         <td>
           <input type="checkbox" name="disablesessionprotection" id="disablesessionprotection"
-                   {if="$private_links_default"}checked{/if}>
+                   {if="$session_protection_disabled"}checked{/if}>
           <label
             for="disablesessionprotection">&nbsp;Disable session cookie hijacking protection (Check this if you get
             disconnected often or if your IP address changes often.)</label>