Skip to content

Commit

Permalink
Update renderer.php
Browse files Browse the repository at this point in the history
Fixed long lines.
  • Loading branch information
drachels committed Jul 18, 2022
1 parent e7bd786 commit 565745e
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -359,15 +359,12 @@ public function questions($allowvote = true) {
$f1 = $this->hotquestion->get_currentroundx();
$f2 = $this->hotquestion->get_roundcount();

if ((($this->hotquestion->instance->comments) && ($question->approved) && (($f1 == $f2) || (!$f1)) && (has_capability('mod/hotquestion:comment', $context)))
|| (($this->hotquestion->instance->comments) && (has_capability('mod/hotquestion:manageentries', $context)))) {
/*
if ((($this->hotquestion->instance->comments)
&& ($question->approved) && ($f1 == $f2))
|| (($this->hotquestion->instance->comments)
//&& (has_capability('mod/hotquestion:manageentries', $context)))) {
&& (has_capability('mod/hotquestion:comment', $context) && ($f1 == $f2)))) {
*/
&& ($question->approved)
&& (($f1 == $f2)
|| (!$f1)) && (has_capability('mod/hotquestion:comment', $context)))
|| (($this->hotquestion->instance->comments)
&& (has_capability('mod/hotquestion:manageentries', $context)))) {

list($context, $course, $cm) = get_context_info_array($context->id);
// Initialize and then check to see how many comments for this question.
Expand Down

0 comments on commit 565745e

Please sign in to comment.