aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Web
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-08-30 18:55:56 -0700
committerzotlabs <mike@macgirvin.com>2017-08-30 18:55:56 -0700
commitf436ec6f2176c3b367cee2d40b78fae267ee779a (patch)
tree8022c9dfde5435f0634b66b97aa482668e4bb88b /Zotlabs/Web
parentbe097bf415c898c470e85e89cd059e7121517d15 (diff)
downloadvolse-hubzilla-f436ec6f2176c3b367cee2d40b78fae267ee779a.tar.gz
volse-hubzilla-f436ec6f2176c3b367cee2d40b78fae267ee779a.tar.bz2
volse-hubzilla-f436ec6f2176c3b367cee2d40b78fae267ee779a.zip
some issues with mod_display on very first anonymous page visit (prior to any browser cookies being set)
Diffstat (limited to 'Zotlabs/Web')
-rw-r--r--Zotlabs/Web/CheckJS.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/Zotlabs/Web/CheckJS.php b/Zotlabs/Web/CheckJS.php
index 109790fa5..8179ceb15 100644
--- a/Zotlabs/Web/CheckJS.php
+++ b/Zotlabs/Web/CheckJS.php
@@ -21,9 +21,9 @@ class CheckJS {
$page = urlencode(\App::$query_string);
if($test) {
- self::$jsdisabled = 1;
+ $this->jsdisabled = 1;
if(array_key_exists('jsdisabled',$_COOKIE))
- self::$jsdisabled = $_COOKIE['jsdisabled'];
+ $this->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";
@@ -41,7 +41,7 @@ class CheckJS {
}
function disabled() {
- return self::$jsdisabled;
+ return $this->jsdisabled;
}