diff --git a/stack/cas/castext2/blocks/parsons.block.php b/stack/cas/castext2/blocks/parsons.block.php
index 877951e5fbbd0f0dd47c90c25e95d5526d71c0d7..40796a3d86713c0eadda774e4084c12e6dcd2db3 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 61ed09a2d7c39b8af26873deb7b8083be41c5f73..7eb832cb09c4ed59c6fc80be26ce75f48e6f7a4e 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.
  */