aboutsummaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-12-09 13:44:45 -0800
committerfriendica <info@friendica.com>2013-12-09 13:44:45 -0800
commit31efbe2f466a323609f9ed8d38bb5fb6223e406b (patch)
tree1f94498070825bce916bdd68cf0c0eaf85307fad /index.php
parentf8e19271502035473197c8bf1b4cd267aa827851 (diff)
parent3c19d9aed213b28f1c07809c193f98759b09cbf7 (diff)
downloadvolse-hubzilla-31efbe2f466a323609f9ed8d38bb5fb6223e406b.tar.gz
volse-hubzilla-31efbe2f466a323609f9ed8d38bb5fb6223e406b.tar.bz2
volse-hubzilla-31efbe2f466a323609f9ed8d38bb5fb6223e406b.zip
Merge https://github.com/friendica/red into zpull
Diffstat (limited to 'index.php')
-rwxr-xr-xindex.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/index.php b/index.php
index 1953dd5cd..adfa6534f 100755
--- a/index.php
+++ b/index.php
@@ -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']);