File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -236,8 +236,7 @@ public function tab_pane_end(MoodleQuickForm &$mform): void {
236236 public function render_advanced_upload_form_tab_field (
237237 MoodleQuickForm &$ mform , advancedupload_field $ field , ?string $ parentid = null
238238 ): void {
239- global $ CFG , $ PAGE ;
240- $ mainrenderer = $ PAGE ->get_renderer ('block_opencast ' );
239+ global $ CFG ;
241240 $ attributes = $ field ->get_attributes ();
242241 $ setadvanced = false ;
243242 if (isset ($ attributes ['set_advanced ' ])) {
@@ -257,6 +256,7 @@ public function render_advanced_upload_form_tab_field(
257256 $ attributes
258257 );
259258 if (!empty ($ field ->get_description ())) {
259+ $ mainrenderer = $ this ->page ->get_renderer ('block_opencast ' );
260260 $ element ->_helpbutton = $ mainrenderer ->render_help_icon_with_custom_text (
261261 $ field ->get_label (), $ field ->get_description ()
262262 );
You can’t perform that action at this time.
0 commit comments