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

Support changing of $CFG->directorypermissions in moodle installers modified by distributions

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9.13, 2.0.4, 2.1.1, 2.2
    • Fix Version/s: 2.0.5, 2.1.2
    • Component/s: Installation
    • Labels:
    • Testing Instructions:
      Hide

      1/ create install/distrolib.php with custom permissions
      2/ verify new config.php contains it

      Show
      1/ create install/distrolib.php with custom permissions 2/ verify new config.php contains it
    • Workaround:
      Hide

      1. Ask $INSTALL['directorypermissions']

      2. Use this $INSTALL['directorypermissions'] use as the default for zanachenie $CFG->directorypermissions

      PS: The patch will put later.

      Show
      1. Ask $INSTALL ['directorypermissions'] 2. Use this $INSTALL ['directorypermissions'] use as the default for zanachenie $CFG->directorypermissions PS: The patch will put later.
    • Affected Branches:
      MOODLE_19_STABLE, MOODLE_20_STABLE, MOODLE_21_STABLE, MOODLE_22_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE, MOODLE_21_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      w33_MDL-29016_m22_distropermissions

      Description

      The file install.php default value of $CFG->directorypermissions has more than one times:

      1. When you set fake some settings so that we can use selected functions from moodlelib.php and weblib.php
      2. When you create a config file.

      This makes it hard to write a patch that performs the substitution of the correct default values ​​for $CFG->directorypermissions.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    10/Oct/11