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

Replace legacy boxes with notifications in badges/view.php and badges/index.php

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 4.4
    • Badges
    • MOODLE_404_STABLE

      This issue is a follow-up from MDL-80052 from one of the comments the awesome reviewer/integrator sarjona left as optional:

      B. [OPTIONAL] Around line 98 in badges/view.php, I would suggest replacing the legacy box with a notification:

      echo $OUTPUT->box(get_string('error:notifycoursedate', 'badges'), 'generalbox notifyproblem');
      

      with

        echo $OUTPUT->notification(
              get_string('error:notifycoursedate', 'badges'),
              \core\output\notification::NOTIFY_WARNING,
              false
          );
      

      If you decide to change it, you'll probably need to update badges/index.php too.

            Unassigned Unassigned
            davidcarrillo David Carrillo
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:

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