diff options
author | Gerrit Uitslag <klapinklapin@gmail.com> | 2013-10-08 00:06:46 +0200 |
---|---|---|
committer | Gerrit Uitslag <klapinklapin@gmail.com> | 2013-10-08 00:06:46 +0200 |
commit | 75e4dd8a2ec6c181e99877919b5a2b529407752a (patch) | |
tree | 82004f563b839c2f6a689fc6487d21d3cb2bd083 /lib/exe/js.php | |
parent | 13af2b2c9bce9b46a0060d4d0b896ed69ebc3755 (diff) | |
download | rpg-75e4dd8a2ec6c181e99877919b5a2b529407752a.tar.gz rpg-75e4dd8a2ec6c181e99877919b5a2b529407752a.tar.bz2 |
Use in cookie a correct path, added DOKU_COOKIEPATH to js constants
Fixes FS#2837
Diffstat (limited to 'lib/exe/js.php')
-rw-r--r-- | lib/exe/js.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/exe/js.php b/lib/exe/js.php index 76238a81b..fc7a869c2 100644 --- a/lib/exe/js.php +++ b/lib/exe/js.php @@ -89,6 +89,7 @@ function js_out(){ // add some global variables print "var DOKU_BASE = '".DOKU_BASE."';"; print "var DOKU_TPL = '".tpl_basedir()."';"; + print "var DOKU_COOKIEPATH = '" . (empty($conf['cookiedir']) ? DOKU_REL : $conf['cookiedir']) . "';"; // FIXME: Move those to JSINFO print "var DOKU_UHN = ".((int) useHeading('navigation')).";"; print "var DOKU_UHC = ".((int) useHeading('content')).";"; |