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 {