diff options
author | friendica <info@friendica.com> | 2013-12-09 13:30:54 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-12-09 13:30:54 -0800 |
commit | 3c19d9aed213b28f1c07809c193f98759b09cbf7 (patch) | |
tree | 1f145aea163d6f80f6874fd5fb13b9a14945fe6d /index.php | |
parent | 7459d2c9e33290b27982e2be66d9a2b7a607715a (diff) | |
parent | c20f207cde7c4bfcfc856542cffe7db273694c6e (diff) | |
download | volse-hubzilla-3c19d9aed213b28f1c07809c193f98759b09cbf7.tar.gz volse-hubzilla-3c19d9aed213b28f1c07809c193f98759b09cbf7.tar.bz2 volse-hubzilla-3c19d9aed213b28f1c07809c193f98759b09cbf7.zip |
Merge pull request #233 from zzottel/master
First JS-less steps
Diffstat (limited to 'index.php')
-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']); |