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

Unify all the places performing a PHP version check

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 2.5
    • Installation
    • MOODLE_25_STABLE

      Detected while fixing MDL-39006 and MDL-42931.

      Right now, apart from the environmental checks of the PHP version, there are a lot of code duplicated performing the same PHP version check here and there (installers, some cli utilities, setup.php...).

      Some of them are 100% redundant and others could be put under a unique function somewhere instead of having to modify manually all them. Ideally the version should be read from some common place too.

      That is, a little improvement for 2.6.

      Ciao

            poltawski Dan Poltawski
            stronk7 Eloy Lafuente (stronk7)
            Votes:
            5 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

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