Merge pull request #596 from ArthurHoaro/hotfix/pluginmanager-tpl-var

Fix session_protection_disabled variable in configure.php
This commit is contained in:
Arthur 2016-07-10 10:45:01 +02:00 committed by GitHub
commit b6e58bab8a
2 changed files with 2 additions and 1 deletions

View file

@ -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));

View 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>