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

Convert standard output renderer callbacks to hooks

XMLWordPrintable

    • MOODLE_404_STABLE
    • MOODLE_404_STABLE
    • MDL-81144-main
    • Hide

      Note: Unit tests cover most of this but are unable to cover the user of headers.

      1. Apply the attached patch:

        git am 0001-PATCH-1-1-DO-NOT-COMMIT-This-is-for-testing-only.patch 

      2. Login as admin
      3. Purge caches
      4. Open browser developer tools and switch to Network tab
      5. Filter on "Document"
      6. Open any page on the site
      7. Select the request
      8. Look for the "Response Headers"
        1. Confirm that there was a header: X-Clacks-Overhead: GNU Terry Pratchett
      Show
      Note: Unit tests cover most of this but are unable to cover the user of headers. Apply the attached patch: git am 0001-PATCH-1-1-DO-NOT-COMMIT-This-is-for-testing-only.patch Login as admin Purge caches Open browser developer tools and switch to Network tab Filter on "Document" Open any page on the site Select the request Look for the "Response Headers" Confirm that there was a header: X-Clacks-Overhead: GNU Terry Pratchett

      All of those located in lib/outputrenderers.php

      Can be loosely based on standard_head_html_prepend but named better.

        1. 0001-PATCH-1-1-DO-NOT-COMMIT-This-is-for-testing-only.patch
          2 kB
          Ilya Tregubov
        2. MDL-81144.png
          334 kB
          Ron Carl Alfon Yu
        3. MDL-81144-1.png
          272 kB
          Ron Carl Alfon Yu

            dobedobedoh Andrew Lyons
            dobedobedoh Andrew Lyons
            Paul Holden Paul Holden
            Ilya Tregubov Ilya Tregubov
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 days, 2 hours, 46 minutes
                2d 2h 46m

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