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

Modify print_error to redirect and use the new notification system

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.3
    • Fix Version/s: None
    • Component/s: General
    • Labels:
      None
    • Affected Branches:
      MOODLE_33_STABLE

      Description

      Jake's comment in MDL-58899 made me think... why don't we just have print_error redirect to $link (or /) and use the notification system to display the error instead of throwing an unpleasant exception.

      We'd need to try and detect redirect loops ($currenturl == $link) but otherwise should be a relatively simple change with a nice benefit.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              dobedobedoh Andrew Lyons
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated: