Loading htdocs/js/viewmenu.js +5 −2 Original line number Diff line number Diff line Loading @@ -238,8 +238,11 @@ function open_modal(e) { var block = $('#configureblock'); var params = { 'viewid': viewid, 'artefactid': $(e.target).closest('a').data('artefactid'), 'viewid': viewid } if ($(e.target).closest('a').data('artefactid')) { params['artefactid'] = $(e.target).closest('a').data('artefactid'); } if ($(e.target).closest('a').data('blockid') != null) { Loading htdocs/view/viewblocks.json.php +2 −2 Original line number Diff line number Diff line Loading @@ -84,7 +84,7 @@ else { $html .= $rendered['html']; // Get any existing comments for display if ($artefact->get('allowcomments')) { if (isset($artefact) && $artefact->get('allowcomments')) { $commentoptions = ArtefactTypeComment::get_comment_options(); $commentoptions->view = $view; $commentoptions->artefact = $artefact; Loading Loading @@ -115,7 +115,7 @@ else { $html .= $smarty->fetch('blocktype:comment:comment.tpl'); } if ($artefact->get('allowcomments') && ( $USER->is_logged_in() || (!$USER->is_logged_in() && get_config('anonymouscomments')))) { if (isset($artefact) && $artefact->get('allowcomments') && ( $USER->is_logged_in() || (!$USER->is_logged_in() && get_config('anonymouscomments')))) { $tmpview = new View($viewid); $commenttype = $tmpview->user_comments_allowed($USER); $moderate = !$USER->is_logged_in() || (isset($commenttype) && $commenttype === 'private'); Loading Loading
htdocs/js/viewmenu.js +5 −2 Original line number Diff line number Diff line Loading @@ -238,8 +238,11 @@ function open_modal(e) { var block = $('#configureblock'); var params = { 'viewid': viewid, 'artefactid': $(e.target).closest('a').data('artefactid'), 'viewid': viewid } if ($(e.target).closest('a').data('artefactid')) { params['artefactid'] = $(e.target).closest('a').data('artefactid'); } if ($(e.target).closest('a').data('blockid') != null) { Loading
htdocs/view/viewblocks.json.php +2 −2 Original line number Diff line number Diff line Loading @@ -84,7 +84,7 @@ else { $html .= $rendered['html']; // Get any existing comments for display if ($artefact->get('allowcomments')) { if (isset($artefact) && $artefact->get('allowcomments')) { $commentoptions = ArtefactTypeComment::get_comment_options(); $commentoptions->view = $view; $commentoptions->artefact = $artefact; Loading Loading @@ -115,7 +115,7 @@ else { $html .= $smarty->fetch('blocktype:comment:comment.tpl'); } if ($artefact->get('allowcomments') && ( $USER->is_logged_in() || (!$USER->is_logged_in() && get_config('anonymouscomments')))) { if (isset($artefact) && $artefact->get('allowcomments') && ( $USER->is_logged_in() || (!$USER->is_logged_in() && get_config('anonymouscomments')))) { $tmpview = new View($viewid); $commenttype = $tmpview->user_comments_allowed($USER); $moderate = !$USER->is_logged_in() || (isset($commenttype) && $commenttype === 'private'); Loading