MDL-79839 tool_task: clean task classname parameter prior to use.

This commit is contained in:
Paul Holden
2023-12-07 10:53:39 +08:00
committed by Jun Pataleta
parent 39a7a380c9
commit 608bddeb3d
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -166,7 +166,7 @@ class tool_task_renderer extends plugin_renderer_base {
// Main tasks table.
$table = $this->generate_adhoc_tasks_simple_table($tasks, $canruntasks);
$table->caption = "$classname "
$table->caption = s($classname) . " "
. get_string($failedonly ? 'adhoctasksfailed' : 'adhoctasks', 'tool_task');
$table->head[3] .= " $failedorall"; // Spice up faildelay heading.