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

Remove hardcoded dataroot/temp and cache directory usage

    Details

    • Testing Instructions:
      Hide

      this is going to be tricky:
      1/ look at the patch and try all places that were affected
      2/ set custom dirs and repeat 1/ + verify the temp and cache is created in the custom dirs

      Show
      this is going to be tricky: 1/ look at the patch and try all places that were affected 2/ set custom dirs and repeat 1/ + verify the temp and cache is created in the custom dirs
    • Affected Branches:
      MOODLE_20_STABLE, MOODLE_21_STABLE
    • Fixed Branches:
      MOODLE_22_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      w36_MDL-28701_m22_tempcachedir

      Description

      Usage of $CFG->dataroot . "/temp" in various forms is strewn throughout Moodle.

      I propose creating a single $CFG->tempdir (which defaults to "$CFG->dataroot/temp" to maintain backwards compatibility) to allow a single point to change the location of the temp files if needed.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  2 Vote for this issue
                  Watchers:
                  7 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    5/Dec/11