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

We shoudl encapsulate $CFG->rolesactive in a function

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0
    • 2.0
    • Libraries
    • None
    • MOODLE_20_STABLE
    • MOODLE_20_STABLE

    Description

      The fact that empty($CFG->rolesactive) is the right way to find out whethet Moodle is fully installed is somewhat obscure.

      I think it makes code easier to follow if we create a during_initial_install() function.

      Attachments

        Activity

          People

            timhunt Tim Hunt
            timhunt Tim Hunt
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              24/Nov/10