aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/styles/prosilver/template
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2008-09-18 14:17:39 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2008-09-18 14:17:39 +0000
commit2fc6d5147afc6c6c3827d698a71dcb210524d51e (patch)
treefca654d38b28072dce3d17128f7fe4762e251176 /phpBB/styles/prosilver/template
parente2736dea20d623f0484a017c0504c4d8f822c908 (diff)
downloadforums-2fc6d5147afc6c6c3827d698a71dcb210524d51e.tar
forums-2fc6d5147afc6c6c3827d698a71dcb210524d51e.tar.gz
forums-2fc6d5147afc6c6c3827d698a71dcb210524d51e.tar.bz2
forums-2fc6d5147afc6c6c3827d698a71dcb210524d51e.tar.xz
forums-2fc6d5147afc6c6c3827d698a71dcb210524d51e.zip
Set secure cookie for style switcher if required. (Bug #19625)
git-svn-id: file:///svn/phpbb/trunk@8875 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/styles/prosilver/template')
-rw-r--r--phpBB/styles/prosilver/template/overall_header.html1
-rw-r--r--phpBB/styles/prosilver/template/styleswitcher.js2
2 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/styles/prosilver/template/overall_header.html b/phpBB/styles/prosilver/template/overall_header.html
index dba717a0ba..c929f2c128 100644
--- a/phpBB/styles/prosilver/template/overall_header.html
+++ b/phpBB/styles/prosilver/template/overall_header.html
@@ -32,6 +32,7 @@
var per_page = '{PER_PAGE}';
var base_url = '{A_BASE_URL}';
var style_cookie = 'phpBBstyle';
+ var style_cookie_settings = '{A_COOKIE_SETTINGS}';
var onload_functions = new Array();
var onunload_functions = new Array();
diff --git a/phpBB/styles/prosilver/template/styleswitcher.js b/phpBB/styles/prosilver/template/styleswitcher.js
index c68215d13f..203d8e4c21 100644
--- a/phpBB/styles/prosilver/template/styleswitcher.js
+++ b/phpBB/styles/prosilver/template/styleswitcher.js
@@ -112,7 +112,7 @@ function createCookie(name, value, days)
expires = '';
}
- document.cookie = name + '=' + value + expires + '; path=/';
+ document.cookie = name + '=' + value + expires + style_cookie_settings;
}
function readCookie(name)