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

MDL-46455 broke backup and restore of subplugins.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 3.0
    • Fix Version/s: 3.0.2
    • Component/s: Backup
    • Labels:

      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

              Assignee:
              timhunt Tim Hunt
              Reporter:
              timhunt Tim Hunt
              Peer reviewer:
              Eloy Lafuente (stronk7)
              Integrator:
              David Monllaó
              Tester:
              cameron1729
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                11/Jan/16