diff options
author | zottel <github@zottel.net> | 2013-12-09 13:30:00 +0100 |
---|---|---|
committer | zottel <github@zottel.net> | 2013-12-09 13:30:00 +0100 |
commit | 198264aaf917b8365b5de3ec92d0ae44eabe0395 (patch) | |
tree | 7ac220eabfab802ccb8a7fda91133eb04759736c | |
parent | 7459d2c9e33290b27982e2be66d9a2b7a607715a (diff) | |
download | volse-hubzilla-198264aaf917b8365b5de3ec92d0ae44eabe0395.tar.gz volse-hubzilla-198264aaf917b8365b5de3ec92d0ae44eabe0395.tar.bz2 volse-hubzilla-198264aaf917b8365b5de3ec92d0ae44eabe0395.zip |
set JS cookie
-rwxr-xr-x | index.php | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -245,6 +245,12 @@ if (file_exists($theme_info_file)){ if(! x($a->page,'content')) $a->page['content'] = ''; +/* set JS cookie */ +if($_COOKIE['jsAvailable'] != 1) { + $a->page['content'] .= '<script>document.cookie="jsAvailable=1; path=/"; location.reload();</script>'; +} + + if(! $install) call_hooks('page_content_top',$a->page['content']); |