Skip to content

Commit

Permalink
support newlines for different operating systems
Browse files Browse the repository at this point in the history
  • Loading branch information
nexterday committed Aug 5, 2016
1 parent 2118ef9 commit 302314d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/.DS_Store
8 changes: 4 additions & 4 deletions renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -220,10 +220,10 @@ public function files_read_only(question_attempt $qa, question_display_options $

if (!$infocreated) {
// Create info file.
$infocontent = get_string('user') . ': ' . $examination_user->firstname . ' ' . $examination_user->lastname .PHP_EOL;
$infocontent .= get_string('email') . ': ' . $examination_user->email . ' (ID: ' . $examination_user->id .')'.PHP_EOL;
$infocontent .= get_string('question') . ': ' . $question->name . ' (ID: ' . $question->id .')'.PHP_EOL;
$infocontent .= get_string('course') . ': ' . $COURSE->fullname . ' (ID: ' . $COURSE->id .')';
$infocontent = get_string('user') . ': ' . $examination_user->firstname . ' ' . $examination_user->lastname . " \r\n";
$infocontent .= get_string('email') . ': ' . $examination_user->email . ' (ID: ' . $examination_user->id .') ' . "\r\n";
$infocontent .= get_string('question') . ': ' . $question->name . ' (ID: ' . $question->id .') ' . "\r\n";
$infocontent .= get_string('course') . ': ' . $COURSE->fullname . ' (ID: ' . $COURSE->id .') ';

$fs = get_file_storage();

Expand Down
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
defined('MOODLE_INTERNAL') || die();

$plugin->component = 'qtype_fileresponse';
$plugin->version = 2016082901;
$plugin->version = 2016082902;

$plugin->requires = 2015050500;

Expand Down

0 comments on commit 302314d

Please sign in to comment.