Skip to content
Snippets Groups Projects
Commit fcd495b7 authored by Chris Sangwin's avatar Chris Sangwin
Browse files

Code tidy.

parent eaf9d689
No related branches found
No related tags found
No related merge requests found
...@@ -66,8 +66,6 @@ ...@@ -66,8 +66,6 @@
* *
*/ */
/** /**
* This answers the question whether the currently active user is * This answers the question whether the currently active user is
* able to edit this question. Basically, editing user. * able to edit this question. Basically, editing user.
...@@ -93,7 +91,6 @@ function stack_user_can_view_question($question): bool { ...@@ -93,7 +91,6 @@ function stack_user_can_view_question($question): bool {
return $question->has_cap('view'); return $question->has_cap('view');
} }
/** /**
* Attachement files and CASText2 compilation note: * Attachement files and CASText2 compilation note:
* 1. If your attacment url is entirelly static after the question * 1. If your attacment url is entirelly static after the question
...@@ -145,7 +142,7 @@ function stack_castext_file_filter(string $castext, array $identifiers): string ...@@ -145,7 +142,7 @@ function stack_castext_file_filter(string $castext, array $identifiers): string
$block .= ' itemid="' . $identifiers['questionid'] . '"'; $block .= ' itemid="' . $identifiers['questionid'] . '"';
break; break;
case 'specificfeedback': case 'specificfeedback':
case 'prtcorrect': // These three are not in actual use case 'prtcorrect': // These three are not in actual use.
case 'prtpartiallycorrect': case 'prtpartiallycorrect':
case 'prtincorrect': case 'prtincorrect':
$block .= ' component="qtype_stack"'; $block .= ' component="qtype_stack"';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment