diff options
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r-- | Zotlabs/Module/Channel.php | 2 | ||||
-rw-r--r-- | Zotlabs/Module/Display.php | 2 | ||||
-rw-r--r-- | Zotlabs/Module/Item.php | 6 | ||||
-rw-r--r-- | Zotlabs/Module/Nojs.php | 8 |
4 files changed, 9 insertions, 9 deletions
diff --git a/Zotlabs/Module/Channel.php b/Zotlabs/Module/Channel.php index cae561266..36f13e775 100644 --- a/Zotlabs/Module/Channel.php +++ b/Zotlabs/Module/Channel.php @@ -57,7 +57,7 @@ function get($update = 0, $load = false) { if($load) $_SESSION['loadtime'] = datetime_convert(); - $checkjs = new \Zotlabs\Web\CheckJS(); + $checkjs = new \Zotlabs\Web\CheckJS(1); $category = $datequery = $datequery2 = ''; diff --git a/Zotlabs/Module/Display.php b/Zotlabs/Module/Display.php index 3d24c6c9a..2a5a04a2a 100644 --- a/Zotlabs/Module/Display.php +++ b/Zotlabs/Module/Display.php @@ -10,7 +10,7 @@ class Display extends \Zotlabs\Web\Controller { // logger("mod-display: update = $update load = $load"); - $checkjs = new \Zotlabs\Web\CheckJS(); + $checkjs = new \Zotlabs\Web\CheckJS(1); if($load) diff --git a/Zotlabs/Module/Item.php b/Zotlabs/Module/Item.php index 58660a839..74fbeed67 100644 --- a/Zotlabs/Module/Item.php +++ b/Zotlabs/Module/Item.php @@ -984,9 +984,9 @@ class Item extends \Zotlabs\Web\Controller { if(($parent) && ($parent != $post_id)) { // Store the comment signature information in case we need to relay to Diaspora - $ditem = $datarray; - $ditem['author'] = $observer; - store_diaspora_comment_sig($ditem,$channel,$parent_item, $post_id, (($walltowall_comment) ? 1 : 0)); + //$ditem = $datarray; + //$ditem['author'] = $observer; + //store_diaspora_comment_sig($ditem,$channel,$parent_item, $post_id, (($walltowall_comment) ? 1 : 0)); } else { $r = q("select * from item where id = %d", diff --git a/Zotlabs/Module/Nojs.php b/Zotlabs/Module/Nojs.php index 5e48c5b5f..6fd6d8106 100644 --- a/Zotlabs/Module/Nojs.php +++ b/Zotlabs/Module/Nojs.php @@ -5,11 +5,11 @@ namespace Zotlabs\Module; class Nojs extends \Zotlabs\Web\Controller { function init() { - - setcookie('jsdisabled', 1, 0); - $p = $_GET['query']; + $n = ((argc() > 1) ? intval(argv(1)) : 1); + setcookie('jsdisabled', $n, 0, '/'); + $p = $_GET['redir']; $hasq = strpos($p,'?'); - goaway(z_root() . (($p) ? '/' . $p : '') . (($hasq) ? '' : '?f=' ) . '&jsdisabled=1'); + goaway(z_root() . (($p) ? '/' . $p : '') . (($hasq) ? '' : '?f=' ) . '&jsdisabled=' . $n); } } |