Skip to content

Commit

Permalink
MDL-74287 media_videojs: skip dynamic loader during install/upgrade.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulholden committed Jun 16, 2022
1 parent ca583bd commit 5388f91
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions media/player/videojs/classes/plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,9 @@ protected function get_regex_youtube() {
* @param moodle_page $page The page we are going to add requirements to.
*/
public function setup($page) {
if (during_initial_install() || is_major_upgrade_required()) {
return;
}

// Load dynamic loader. It will scan page for videojs media and load necessary modules.
// Loader will be loaded on absolutely every page, however the videojs will only be loaded
Expand Down

0 comments on commit 5388f91

Please sign in to comment.