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

Chat uses require instead of require_once

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.9.4, 3.10.1
    • 3.9.3, 3.10
    • Chat

      A few pages in chat use require() instead of require_once() to import their lib.php. 

      This will cause the chat to break if mod/chat/lib.php is imported earlier in the page load - as can happen with certain filters (like Ally).

      I did a quick grep, and this is the only place in core where a mod imports its lib.php using require().

            emerrill Eric Merrill
            emerrill Eric Merrill
            Tim Hunt Tim Hunt
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Janelle Barcega Janelle Barcega
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 50 minutes
                50m

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