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

Forum: Missing language string for print_error in /mod/forum/rate_ajax.php

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Trivial Trivial
    • None
    • 1.9.4
    • Forum, Language

      While playing with a possible patch for CONTRIB-1085, I noticed the following line:

      print_error('mustbeloggedin');

      There is no string or documentation page for mustbeloggedin. I played with the idea of simply using 'loggedinnot'; however, there was a comment in print_error indicating that it is best to have the string defined in error.php rather than relying on the backwards compatible option to look in /lang/en_utf8/moodle.php.

      We should also go ahead and create:

      http://docs.moodle.org/en/error/moodle/mustbeloggedin

      I'll attach a patch with the new language string.

      Peace - Anthony

            moodle.com Moodle HQ
            aborrow Anthony Borrow
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

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