X-Git-Url: http://git.moodle.org/gw?p=moodle.git;a=blobdiff_plain;f=repository%2Fyoutube%2Fdb%2Finstall.php;h=28a4f0beb28866a28e83a8cedd715e640318a29f;hp=654f9e98eb8b25636aabfb676e8716d48d516992;hb=bf2986c2e308483a7842e493e54c928bedbfb069;hpb=032a4fe51ccf41cbd3c310d52ca5b7777ffb5123;ds=sidebyside diff --git a/repository/youtube/db/install.php b/repository/youtube/db/install.php index 654f9e98eb8..28a4f0beb28 100644 --- a/repository/youtube/db/install.php +++ b/repository/youtube/db/install.php @@ -23,17 +23,14 @@ */ /** - * Create a default instance of the youtube repository + * This was supposed to be the installer script for the Youtube repository. * - * @return bool A status indicating success or failure + * However, since the Youtube repository is disabled in new Moodle installations from 3.0, and since we cannot + * just delete this file, the function's contents has been replaced to just return true. + * See https://tracker.moodle.org/browse/MDL-50572 for more details. + * + * @return bool Return true. */ function xmldb_repository_youtube_install() { - global $CFG; - $result = true; - require_once($CFG->dirroot.'/repository/lib.php'); - $youtubeplugin = new repository_type('youtube', array(), true); - if(!$id = $youtubeplugin->create(true)) { - $result = false; - } - return $result; + return true; }