Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-52523

MDL-46455 broke backup and restore of subplugins.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 3.0.2
    • 3.0
    • Backup

    Description

      If your subplugin backup file does a require_once, e.g. https://github.com/moodleou/moodle-quizaccess_honestycheck/blob/master/backup/moodle2/backup_quizaccess_honestycheck_subplugin.class.php does

      require_once($CFG->dirroot . '/mod/quiz/backup/moodle2/backup_mod_quiz_access_subplugin.class.php');
      

      then since MDL-46455 you get a fatal error, since the new add_subplugin_structure function does not declare global $CFG. (The previous implementation, before that change, did.)

      Attachments

        Issue Links

          Activity

            People

              timhunt Tim Hunt
              timhunt Tim Hunt
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              David Monllaó David Monllaó
              cameron1729 cameron1729
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                11/Jan/16