~ubuntu-branches/ubuntu/jaunty/moodle/jaunty

« back to all changes in this revision

Viewing changes to question/type/missingtype/questiontype.php

  • Committer: Bazaar Package Importer
  • Author(s): Jordan Mantha, Matt Oquist
  • Date: 2009-02-25 15:16:22 UTC
  • mfrom: (1.1.11 upstream)
  • Revision ID: james.westby@ubuntu.com-20090225151622-0ekt1liwhv2obfza
Tags: 1.9.4.dfsg-0ubuntu1
* Merge with Debian git (Closes LP: #322961, #239481, #334611):
  - use Ubuntu's smarty lib directory for linking
  - use internal yui library 
  - add update-notifier support back in

[Matt Oquist]
  * renamed prerm script
  * significantly rewrote postinst and other maintainer scripts to improve
    user experience and package maintainability
    (Closes LP: #225662, #325450, #327843, #303078, #234609)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?php  // $Id: questiontype.php,v 1.5 2007/01/18 10:22:56 jamiesensei Exp $
 
1
<?php  // $Id: questiontype.php,v 1.7.2.1 2007/11/02 16:20:37 tjhunt Exp $
2
2
 
3
3
///////////////////
4
4
/// missingtype ///
12
12
 * When a question is encountered with a type that is not installed then its
13
13
 * type is changed to 'missingtype'. This questiontype just makes sure that the
14
14
 * necessary information is printed about the question.
 
15
 * @package questionbank
 
16
 * @subpackage questiontypes
15
17
 */
16
18
class question_missingtype_qtype extends default_questiontype {
17
19
 
40
42
        $questiontext = format_text($question->questiontext,
41
43
                         $question->questiontextformat,
42
44
                         $formatoptions, $cmoptions->course);
43
 
        $image = get_question_image($question, $cmoptions->course);
 
45
        $image = get_question_image($question);
44
46
 
45
47
        // Print each answer in a separate row if there are any
46
48
        $anss = array();