From: moodler Date: Sat, 22 May 2004 08:53:58 +0000 (+0000) Subject: Display README.html as well X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=0948ab2609a7430c3d8dfb6e021111149eed4731;p=moodle.git Display README.html as well --- diff --git a/theme/index.php b/theme/index.php index 4e2d07acb6..562c7441c1 100644 --- a/theme/index.php +++ b/theme/index.php @@ -46,7 +46,13 @@ if (set_config("theme", $choose)) { print_heading(get_string("themesaved")); print_continue("$CFG->wwwroot"); - if (file_exists("$choose/README.txt")) { + + if (file_exists("$choose/README.html")) { + print_simple_box_start("center"); + readfile("$choose/README.html"); + print_simple_box_end(); + + } else if (file_exists("$choose/README.txt")) { print_simple_box_start("center"); $file = file("$choose/README.txt"); echo format_text(implode('', $file), FORMAT_MOODLE);