]> git.mjollnir.org Git - moodle.git/commitdiff
Now the Admin/Variables and Admin/Backup pages show a
authorstronk7 <stronk7>
Thu, 20 May 2004 16:05:29 +0000 (16:05 +0000)
committerstronk7 <stronk7>
Thu, 20 May 2004 16:05:29 +0000 (16:05 +0000)
warning if XML support isn't enabled.
Bug 1432
(http://moodle.org/bugs/bug.php?op=show&bugid=1432)

admin/backup.php
admin/config.html

index 295a69bcf00ff5a366c71614b161de3e498c7150..608f39e06892c8de96e7ad4a9480841877509099 100644 (file)
     echo "<br />";
 
     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("<font color=\"red\">You need to add XML support to your PHP installation</font>", "center", "70%", "$THEME->cellheading", "20", "noticebox");
+    } 
+    include ("$CFG->dirroot/backup/config.html");
+
     print_simple_box_end();
 
     print_footer();
index 52b3fff01fe4b9a0a65ad2153e604f9614e68053..2e24fb8040ae213f102610330ae0cbcb9fea43d0 100644 (file)
     ?>
     </td>
     <td>
-    <?php print_string("configenablerssfeeds") ?>
+    <?php 
+        print_string("configenablerssfeeds");
+        //Check for required functions...
+        if(!function_exists('utf8_encode')) {
+            echo "<font color=\"red\"> You need to add XML support to your PHP installation.</font>";
+        } 
+    ?>
     </td>
 </tr>