From 64d6c09b7a7bffa48142db05f8268a70a02e9a8c Mon Sep 17 00:00:00 2001 From: stronk7 Date: Thu, 20 May 2004 16:05:29 +0000 Subject: [PATCH] Now the Admin/Variables and Admin/Backup pages show a warning if XML support isn't enabled. Bug 1432 (http://moodle.org/bugs/bug.php?op=show&bugid=1432) --- admin/backup.php | 8 +++++++- admin/config.html | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/admin/backup.php b/admin/backup.php index 295a69bcf0..608f39e068 100644 --- a/admin/backup.php +++ b/admin/backup.php @@ -119,7 +119,13 @@ echo "
"; print_simple_box_start("center", "", "$THEME->cellheading"); - include("$CFG->dirroot/backup/config.html"); + + //Check for required functions... + if(!function_exists('utf8_encode')) { + print_simple_box("You need to add XML support to your PHP installation", "center", "70%", "$THEME->cellheading", "20", "noticebox"); + } + include ("$CFG->dirroot/backup/config.html"); + print_simple_box_end(); print_footer(); diff --git a/admin/config.html b/admin/config.html index 52b3fff01f..2e24fb8040 100644 --- a/admin/config.html +++ b/admin/config.html @@ -447,7 +447,13 @@ ?> - + You need to add XML support to your PHP installation."; + } + ?> -- 2.39.5