aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Display.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-10-08 05:12:49 +0000
committerMario <mario@mariovavti.com>2018-10-08 11:14:37 +0200
commit82528e2f383ec6d99a125f710a8fd98f472e1fa6 (patch)
tree20a18831441b581ab77b98d2ab8d7157c374dce0 /Zotlabs/Module/Display.php
parent90a983a7e5df6019973dc9f603dd9503d00e074e (diff)
downloadvolse-hubzilla-82528e2f383ec6d99a125f710a8fd98f472e1fa6.tar.gz
volse-hubzilla-82528e2f383ec6d99a125f710a8fd98f472e1fa6.tar.bz2
volse-hubzilla-82528e2f383ec6d99a125f710a8fd98f472e1fa6.zip
hubzilla core issue #1278 - page update always reloads if noscript content is enabled
(cherry picked from commit 69584f541d052e6da410d9cd782656eb31fae22d)
Diffstat (limited to 'Zotlabs/Module/Display.php')
-rw-r--r--Zotlabs/Module/Display.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/Zotlabs/Module/Display.php b/Zotlabs/Module/Display.php
index 8b46ebb79..d1755c183 100644
--- a/Zotlabs/Module/Display.php
+++ b/Zotlabs/Module/Display.php
@@ -12,7 +12,7 @@ class Display extends \Zotlabs\Web\Controller {
function get($update = 0, $load = false) {
- $noscript_content = get_config('system', 'noscript_content', '1');
+ $noscript_content = (get_config('system', 'noscript_content', '1') && (! $update));
$module_format = 'html';
@@ -299,7 +299,6 @@ class Display extends \Zotlabs\Web\Controller {
require_once('include/channel.php');
$sys = get_sys_channel();
$sysid = $sys['channel_id'];
-
if(local_channel()) {
$r = q("SELECT item.parent AS item_id from item
WHERE uid = %d
@@ -340,7 +339,7 @@ class Display extends \Zotlabs\Web\Controller {
else {
$r = array();
}
-
+
if($r) {
$parents_str = ids_to_querystr($r,'item_id');
if($parents_str) {