From 3c1c60fdd0a428a0ef95506932bae0f207bc4f34 Mon Sep 17 00:00:00 2001 From: smmercuri <smercuri@ed.ac.uk> Date: Wed, 6 Dec 2023 12:22:23 +0000 Subject: [PATCH] Remove cdnjs mathjax function --- stack/cas/castext2/blocks/parsons.block.php | 2 +- vle_specific.php | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/stack/cas/castext2/blocks/parsons.block.php b/stack/cas/castext2/blocks/parsons.block.php index 877951e5f..40796a3d8 100644 --- a/stack/cas/castext2/blocks/parsons.block.php +++ b/stack/cas/castext2/blocks/parsons.block.php @@ -101,7 +101,7 @@ class stack_cas_castext2_parsons extends stack_cas_castext2_block { $r->items[] = new MP_String(json_encode($xpars)); // Plug in some style and scripts. - $mathjax = ($mathjaxversion === "2") ? stack_get_mathjax2_url_cdnjs() : stack_get_mathjax3_url(); + $mathjax = ($mathjaxversion === "2") ? stack_get_mathjax_url() : stack_get_mathjax3_url(); $r->items[] = new MP_List([ new MP_String('script'), new MP_String(json_encode(['type' => 'text/javascript', 'src' => $mathjax]))]); diff --git a/vle_specific.php b/vle_specific.php index 61ed09a2d..7eb832cb0 100644 --- a/vle_specific.php +++ b/vle_specific.php @@ -193,10 +193,6 @@ function stack_get_mathjax_url(): string { return 'https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'; } -function stack_get_mathjax2_url_cdnjs() { - return 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML'; -} - /* * Gets the url for MathJax 3. */ -- GitLab