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

enrol_get_plugin() requires lib.php

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.1.4, 3.2.1
    • 3.1.3
    • Enrolments
    • MOODLE_31_STABLE
    • MOODLE_31_STABLE, MOODLE_32_STABLE
    • Hide

      Create empty lib.php in your enrolment plugin.

      Show
      Create empty lib.php in your enrolment plugin.
    • Hide
      1. Move enrol/manual/lib.php to enrol/manual/classes/plugin.php
      2. Run unit test vendor/bin/phpunit enrol_manual_lib_testcase enrol/manual/tests/lib_test.php
      3. Confirm that test passes with patch (and fails without)
      Show
      Move enrol/manual/lib.php to enrol/manual/classes/plugin.php Run unit test vendor/bin/phpunit enrol_manual_lib_testcase enrol/manual/tests/lib_test.php Confirm that test passes with patch (and fails without)

      In MDL-44610 I created a patch that enables enrolment plugins classes to be loaded by autoloading (since the required class name is in the right format), but have just discovered that the enrol_get_plugin() function still requires the lib.php file to be present, so this patch is not complete.

            maherne Michael Aherne
            maherne Michael Aherne
            Frédéric Massart Frédéric Massart
            Dan Poltawski Dan Poltawski
            Jun Pataleta Jun Pataleta
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

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