From bbdf58017759ae7a73d9e7bce978be928a9c91ce Mon Sep 17 00:00:00 2001 From: Andrew Nicols Date: Tue, 18 Jun 2024 15:55:03 +0800 Subject: [PATCH] MDL-82224 core_admin: Remove manual check for json JSON can no longer be disabled. --- admin/index.php | 7 ------- 1 file changed, 7 deletions(-) diff --git a/admin/index.php b/admin/index.php index f1fbb16d470..fc6dfac2473 100644 --- a/admin/index.php +++ b/admin/index.php @@ -40,13 +40,6 @@ if (!function_exists('iconv')) { die(); } -// Make sure php5-json is available. -if (!function_exists('json_encode') || !function_exists('json_decode')) { - // This also shouldn't happen. - echo 'Moodle requires the json PHP extension. Please install or enable the json extension.'; - die(); -} - // Make sure xml extension is available. if (!extension_loaded('xml')) { echo 'Moodle requires the xml PHP extension. Please install or enable the xml extension.';