Skip to content

Commit

Permalink
Now the Admin/Variables and Admin/Backup pages show a
Browse files Browse the repository at this point in the history
warning if XML support isn't enabled.
Bug 1432
(http://moodle.org/bugs/bug.php?op=show&bugid=1432)
  • Loading branch information
stronk7 committed May 20, 2004
1 parent 9a2ba13 commit 64d6c09
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 7 additions & 1 deletion admin/backup.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,13 @@
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();
Expand Down
8 changes: 7 additions & 1 deletion admin/config.html
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,13 @@
?>
</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>

Expand Down

0 comments on commit 64d6c09

Please sign in to comment.