Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-5520

Dataform lib.php includes locallib.php

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.8.2
    • 2.8
    • Set: Dataform
    • None
    • 2.8
    • MOODLE_28_STABLE
    • MOODLE_28_STABLE

      The main idea behind the locallib.php file in plugins is to separate the inner API and functionality of the plugin from the interface library lib.php. The lib.php files from all the plugins are loaded by the Moodle core on almost all page requests. That is why it is essential to keep their size as small as possible and provide just necessary interface API/code there. As the file locallib.php is included automatically from lib.php, this whole looses sense. The recommended pattern is to load locallib.php from scripts (like view.php) explicitly.

            itamart Itamar Tzadok (Inactive)
            mudrd8mz David Mudrák (@mudrd8mz)
            Itamar Tzadok Itamar Tzadok (Inactive)
            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.