Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-31167 PHP strict META
  3. MDL-33577

Strict standards in multianswer question type

    XMLWordPrintable

Details

    • Sub-task
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.3
    • 2.3
    • Questions
    • MOODLE_23_STABLE
    • MOODLE_23_STABLE
    • Hide
      1. Create a quiz with a multianswer question (cloze). with e.g. text:

        Match the following cities with the correct state:
        * San Francisco: {1:MULTICHOICE:=California#OK~Arizona#Wrong}
        * Tucson: {1:MULTICHOICE:California#Wrong~%100%Arizona#OK}
        * Los Angeles: {1:MULTICHOICE:=California#OK~Arizona#Wrong}
        * Phoenix: {1:MULTICHOICE:%0%California#Wrong~=Arizona#OK}
        The capital of France is {1:SHORTANSWER:%100%Paris#Congratulations!
        ~%50%Marseille#No, that is the second largest city in France (after
        Paris).~*#Wrong answer. The capital of France is Paris, of course.}.

      2. Preview the quiz in developer debug mode. Ensure there are not errors.
      Show
      Create a quiz with a multianswer question (cloze). with e.g. text: Match the following cities with the correct state: * San Francisco: {1:MULTICHOICE:=California#OK~Arizona#Wrong} * Tucson: {1:MULTICHOICE:California#Wrong~%100%Arizona#OK} * Los Angeles: {1:MULTICHOICE:=California#OK~Arizona#Wrong} * Phoenix: {1:MULTICHOICE:%0%California#Wrong~=Arizona#OK} The capital of France is {1:SHORTANSWER:%100%Paris#Congratulations! ~%50%Marseille#No, that is the second largest city in France (after Paris).~*#Wrong answer. The capital of France is Paris, of course.}. Preview the quiz in developer debug mode. Ensure there are not errors.

    Description

      When viewing a quiz containing a multianswer question.

      Strict Standards: Only variables should be passed by reference in /home/fred/www/repositories/testing_master/moodle/question/type/multianswer/renderer.php on line 282

      Attachments

        Issue Links

          Activity

            People

              timhunt Tim Hunt
              fred Frédéric Massart
              Dan Poltawski Dan Poltawski
              Dan Poltawski Dan Poltawski
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                25/Jun/12