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

Assignment plugins is not completely plugable

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.9.2
    • 1.9.7
    • Assignment (2.2)
    • None
    • MOODLE_19_STABLE
    • MOODLE_19_STABLE
    • Easy

    Description

      When developing a custom assignment plugin (random), its name cannot be found in directories searched. More explicitly, function assignment_types in assignment/lib.php calls function get_string('type'.$name, 'assignment'). All official plugins get string name typeonline, typeoffline, etc from official language file asignment.php in lang/en_utf8 (or other appropriate language). However, custom plugin should get its strings from mod/assignment/type/random/lang/en_utf8. Although language file assignment_random.php in this directory is browsed for other strings, string typerandom is not read from it. This results in [[typerandom]] messages in list of assignments and at the assignment update pages.

      Attachments

        1. 0001-mod-assignment-MDL-16796-Support-non-core-assignmen.patch
          3 kB
          Dan Poltawski
        2. assignment_type.patch
          2 kB
          Anthony Borrow
        3. assignment_type.patch
          1 kB
          Anthony Borrow

        Issue Links

          Activity

            People

              poltawski Dan Poltawski
              fikar Miroslav Fikar
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Sujith Haridasan
              Votes:
              6 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                25/Nov/09