diff options
author | Mario Vavti <mario@mariovavti.com> | 2016-06-22 09:58:55 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2016-06-22 09:58:55 +0200 |
commit | 5536df51f58a65f5a42051b0466b1c13c9a9718a (patch) | |
tree | e2000aa48946689e1c9e2b9d7b172854d69e2cbd /Zotlabs/Web/CheckJS.php | |
parent | ecae0b3d97d759603bb2bf9bc51187a2842964c8 (diff) | |
parent | f48b12ff52c4fda85c09c1cc476f7cf4c0cfb649 (diff) | |
download | volse-hubzilla-5536df51f58a65f5a42051b0466b1c13c9a9718a.tar.gz volse-hubzilla-5536df51f58a65f5a42051b0466b1c13c9a9718a.tar.bz2 volse-hubzilla-5536df51f58a65f5a42051b0466b1c13c9a9718a.zip |
erge branch 'dev' into sabre32
Diffstat (limited to 'Zotlabs/Web/CheckJS.php')
-rw-r--r-- | Zotlabs/Web/CheckJS.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Zotlabs/Web/CheckJS.php b/Zotlabs/Web/CheckJS.php index 5f9856a8c..109790fa5 100644 --- a/Zotlabs/Web/CheckJS.php +++ b/Zotlabs/Web/CheckJS.php @@ -21,6 +21,9 @@ class CheckJS { $page = urlencode(\App::$query_string); if($test) { + self::$jsdisabled = 1; + if(array_key_exists('jsdisabled',$_COOKIE)) + self::$jsdisabled = $_COOKIE['jsdisabled']; if(! array_key_exists('jsdisabled',$_COOKIE)) { \App::$page['htmlhead'] .= "\r\n" . '<script>document.cookie="jsdisabled=0; path=/"; var jsMatch = /\&jsdisabled=0/; if (!jsMatch.exec(location.href)) { location.href = "' . z_root() . '/nojs/0?f=&redir=' . $page . '" ; }</script>' . "\r\n"; |