Skip to content

Commit

Permalink
fix #95, deprecated usage of implode
Browse files Browse the repository at this point in the history
  • Loading branch information
ndrwnaguib committed Oct 7, 2020
1 parent 4664486 commit a4dc0b1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion clients/mod/assign/feedback/onlinejudge/locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ public function view(stdClass $grade) {
$i++;
}
if (!empty($lines)) {
$item = implode($lines, '<hr>');
$item = implode('<hr>', $lines);
}
}
$item = format_text($item, FORMAT_MOODLE, array('allowid' => true)); // popup details links require id
Expand Down
2 changes: 1 addition & 1 deletion clients/mod/assign/feedback/onlinejudge/source.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,6 @@
$lines[] = $line;
}
if (!empty($lines)) {
$item = implode($lines, '<hr>');
$item = implode('<hr>', $lines);
}
include('source.html');
4 changes: 2 additions & 2 deletions clients/mod/assign/feedback/onlinejudge/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@
// This fragment is called by /admin/index.php
////////////////////////////////////////////////////////////////////////////////

$plugin->version = 2020100400;
$plugin->version = 2020100401;
$plugin->requires = 2017111300; // Requires this Moodle version
$plugin->component = 'assignfeedback_onlinejudge';
$plugin->maturity = MATURITY_BETA;
$plugin->release = "v3.1-r1"; // User-friendly version number
$plugin->release = "v3.1-r2"; // User-friendly version number
$plugin->dependencies = array('local_onlinejudge' => 2020100700);

0 comments on commit a4dc0b1

Please sign in to comment.