Skip to content

Commit

Permalink
Fix PHP strict errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
timhunt committed Apr 5, 2012
1 parent 8e9d714 commit cec1a80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions questiontype.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ protected function make_choice($choicedata) {
$choicedata->answer, $options->draggroup, $options->infinite);
}

public function import_from_xml($data, $question, $format, $extra=null) {
public function import_from_xml($data, $question, qformat_xml $format, $extra=null) {
if (!isset($data['@']['type']) || $data['@']['type'] != 'ddwtos') {
return false;
}
Expand Down Expand Up @@ -107,7 +107,7 @@ public function import_from_xml($data, $question, $format, $extra=null) {
return $question;
}

public function export_to_xml($question, $format, $extra = null) {
public function export_to_xml($question, qformat_xml $format, $extra = null) {
$output = '';

$output .= ' <shuffleanswers>' . $question->options->shuffleanswers .
Expand Down

0 comments on commit cec1a80

Please sign in to comment.