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

MDL-46455 broke backup and restore of subplugins.

XMLWordPrintable

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

      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.)

            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

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.