Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37899120
en ru br
ALT Linux repos
S:4.2.3-alt1

Group :: Education
RPM: moodle-qtype_coderunner

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: alt-jobe-host-default.patch
Download


diff --git a/classes/constants.php b/classes/constants.php
index aaed739..91d57d5 100644
--- a/classes/constants.php
+++ b/classes/constants.php
@@ -48,7 +48,7 @@ class constants {
     const MAX_LINE_LENGTH = 100;     // Maximum length of a string for display in the result table.
     const MAX_NUM_LINES = 200;       // Maximum number of lines of text to be displayed a result table cell.
 
-    const JOBE_HOST_DEFAULT = 'jobe2.cosc.canterbury.ac.nz';
+    const JOBE_HOST_DEFAULT = 'localhost:8089';
     const JOBE_HOST_DEFAULT_API_KEY = '2AAA7A5415B4A9B394B54BF1D2E9D';
     
     const DEFAULT_NUM_ROWS = 18;     // Default answerbox size
diff --git a/renderer.php b/renderer.php
index 201a234..8489343 100644
--- a/renderer.php
+++ b/renderer.php
@@ -354,7 +354,7 @@ class qtype_coderunner_renderer extends qtype_renderer {
         if (isset($sandboxinfo['jobeserver'])) {
             $jobeserver = $sandboxinfo['jobeserver'];
             $apikey = $sandboxinfo['jobeapikey'];
-            if ($jobeserver == constants::JOBE_HOST_DEFAULT && $CFG->prefix !== 'b_') {
+            if ($jobeserver == 'jobe2.cosc.canterbury.ac.nz' && $CFG->prefix !== 'b_') {
                 if ($apikey == constants::JOBE_HOST_DEFAULT_API_KEY) {
                     $fb .= get_string('jobe_warning_html', 'qtype_coderunner');
                 } else {
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin