MDL-42666 repository_boxnet: Warn on HTTPS requirement when non HTTPS

This commit is contained in:
Frederic Massart
2013-11-06 11:24:07 +08:00
parent aea6108e05
commit b633be82aa
+4 -1
View File
@@ -331,7 +331,10 @@ class repository_boxnet extends repository {
$mform->setType('clientsecret', PARAM_RAW_TRIMMED);
$mform->addElement('static', null, '', get_string('information', 'repository_boxnet'));
$mform->addElement('static', null, '', get_string('warninghttps', 'repository_boxnet'));
if (strpos($CFG->wwwroot, 'https') !== 0) {
$mform->addElement('static', null, '', get_string('warninghttps', 'repository_boxnet'));
}
if (get_config('boxnet', 'api_key')) {
$url = new moodle_url('/repository/boxnet/migrationv1.php');