Skip to content

Commit 7e164e9

Browse files
committed
MDL-85270 output: Export url_select for template.
1 parent 70de23e commit 7e164e9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

public/lib/classes/output/activity_header.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,11 +208,16 @@ public function export_for_template(renderer_base $output): array {
208208
);
209209
}
210210

211+
$additionalitems = '';
212+
if (!$this->hideoverflow && !is_null($this->additionalnavitems)) {
213+
$additionalitems = $this->additionalnavitems->export_for_template($output);
214+
}
215+
211216
return [
212217
'title' => $this->title,
213218
'description' => $this->description,
214219
'completion' => $activityinfo,
215-
'additional_items' => $this->hideoverflow ? '' : $this->additionalnavitems,
220+
'additional_items' => $additionalitems,
216221
];
217222
}
218223

0 commit comments

Comments
 (0)