Skip to content

Commit f0c3955

Browse files
Copilotndrwnaguib
andcommitted
Add language strings for new event names and fix include paths
Co-authored-by: ndrwnaguib <[email protected]>
1 parent cb9a8d5 commit f0c3955

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

classes/judge/sandbox.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@
4949

5050
defined('MOODLE_INTERNAL') || die();
5151

52-
require_once(dirname(__FILE__) . "/../../../../config.php");
53-
require_once($CFG->dirroot . "/local/onlinejudge/judgelib.php");
52+
require_once(dirname(__FILE__) . "/../../judgelib.php");
5453

5554
define('SANDBOX_SAND', escapeshellcmd($CFG->dirroot . '/local/onlinejudge/judge/sandbox/sand/sand'));
5655

classes/judge/sphere_engine.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@
5050

5151
defined('MOODLE_INTERNAL') || die();
5252

53-
require_once(dirname(__FILE__) . "/../../../../config.php");
54-
require_once($CFG->dirroot . "/local/onlinejudge/judgelib.php");
53+
require_once(dirname(__FILE__) . "/../../judgelib.php");
5554

5655
use SphereEngine\Api\CompilersClientV4;
5756
use SphereEngine\Api\SphereEngineResponseException;

lang/en/local_onlinejudge.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,4 +119,6 @@
119119
$string['upgradenotify'] = 'Do NOT forget to execute cli/install_assign_feedback and cli/judged.php. Details in <a href="https://github.com/hit-moodle/moodle-local_onlinejudge/blob/master/README.md" target="_blank">README</a>.';
120120
$string['event_onlinejudge_task_judged'] = "Event Online Judge Task Judged";
121121
$string['event_onlinejudge_task_description'] = "The event is concerned with firing the 'onlinejudge_task_judged' located in MOODLE_PATH/mod/assign/feedback/onlinejudge/lib.php.";
122+
$string['event_task_judged'] = "Online Judge Task Judged";
123+
$string['event_task_judged_description'] = "The event is fired when an online judge task has been judged.";
122124
// TODO: add translations to other languages.

0 commit comments

Comments
 (0)