From: skodak Date: Tue, 15 May 2007 08:41:55 +0000 (+0000) Subject: MDL-9798 fallback to html mimetype when missing index.php, index.html; merged from... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=2b534178352fb6d58a193f52151f3b75e345dce2;p=moodle.git MDL-9798 fallback to html mimetype when missing index.php, index.html; merged from MOODLE_18_STABLE --- diff --git a/user/policy.php b/user/policy.php index f43a99f608..7950755e75 100644 --- a/user/policy.php +++ b/user/policy.php @@ -38,6 +38,11 @@ print_heading($strpolicyagreement); $mimetype = mimeinfo('type', $CFG->sitepolicy); + if ($mimetype == 'document/unknown') { + //fallback for missing index.php, index.html + $mimetype = 'text/html'; + } + echo '
'; echo ''; echo link_to_popup_window ($CFG->sitepolicy, 'agreement', $strpolicyagreementclick,