aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-06-21 19:42:08 -0700
committerredmatrix <git@macgirvin.com>2016-06-21 19:42:08 -0700
commit415a8d1e01107e8bcff1a1ac1bdd8beb2d461408 (patch)
tree845c84ede2842590327e675cc70ebb5a377f1286 /Zotlabs
parent2a840460dddb06c99b616b5adc666ee0f39588de (diff)
downloadvolse-hubzilla-415a8d1e01107e8bcff1a1ac1bdd8beb2d461408.tar.gz
volse-hubzilla-415a8d1e01107e8bcff1a1ac1bdd8beb2d461408.tar.bz2
volse-hubzilla-415a8d1e01107e8bcff1a1ac1bdd8beb2d461408.zip
channel homepage not providing content when javascript disabled
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Web/CheckJS.php3
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";