Revert "Merge branch 'MDL-43127-28-fixup' of https://github.com/FMCorz/moodle into MOODLE_28_STABLE"

This reverts commit f603096c47, reversing
changes made to 5169661ee2.
This commit is contained in:
Dan Poltawski
2014-11-27 09:34:58 +00:00
parent c3e67edfac
commit e393866a36
2 changed files with 1 additions and 5 deletions
+1 -4
View File
@@ -164,10 +164,7 @@ class tool_uploadcourse_helper {
if (!empty($enrolmethods)) {
$enrolmentplugins = self::get_enrolment_plugins();
foreach ($enrolmethods as $key => $method) {
if (empty($method)) {
// The enrolment method is not specified, we skip it.
continue;
} else if (!array_key_exists($method, $enrolmentplugins)) {
if (!array_key_exists($method, $enrolmentplugins)) {
// Unknown enrolment method.
$unknownmethods[] = $method;
continue;
@@ -79,7 +79,6 @@ class tool_uploadcourse_helper_testcase extends advanced_testcase {
'enrolment_5_test2' => 'test2',
'enrolment_5_test1' => 'test1',
'enrolment_5' => 'flatfile',
'enrolment_6' => '',
);
$expected = array(
'self' => array(