From b104cede75ca20cc0ad163107258ebba28761c96 Mon Sep 17 00:00:00 2001 From: Alex Date: Mon, 16 Apr 2018 20:56:10 -0600 Subject: [PATCH 1/2] MDL-57600 format: Fix spelling errors --- course/format/renderer.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/course/format/renderer.php b/course/format/renderer.php index b12e4c6cbc1..357c0a33894 100644 --- a/course/format/renderer.php +++ b/course/format/renderer.php @@ -414,7 +414,7 @@ abstract class format_section_renderer_base extends plugin_renderer_base { } /** - * Generate a summary of a section for display on the 'coruse index page' + * Generate a summary of a section for display on the 'course index page' * * @param stdClass $section The course_section entry from DB * @param stdClass $course The course entry from DB @@ -604,7 +604,7 @@ abstract class format_section_renderer_base extends plugin_renderer_base { * Show if something is on on the course clipboard (moving around) * * @param stdClass $course The course entry from DB - * @param int $sectionno The section number in the coruse which is being dsiplayed + * @param int $sectionno The section number in the course which is being displayed * @return string HTML to output. */ protected function course_activity_clipboard($course, $sectionno = null) { @@ -634,7 +634,7 @@ abstract class format_section_renderer_base extends plugin_renderer_base { * * @param stdClass $course The course entry from DB * @param array $sections The course_sections entries from the DB - * @param int $sectionno The section number in the coruse which is being dsiplayed + * @param int $sectionno The section number in the course which is being displayed * @return array associative array with previous and next section link */ protected function get_nav_links($course, $sections, $sectionno) { @@ -679,7 +679,7 @@ abstract class format_section_renderer_base extends plugin_renderer_base { /** * Generate the header html of a stealth section * - * @param int $sectionno The section number in the coruse which is being dsiplayed + * @param int $sectionno The section number in the course which is being displayed * @return string HTML to output. */ protected function stealth_section_header($sectionno) { @@ -709,7 +709,7 @@ abstract class format_section_renderer_base extends plugin_renderer_base { /** * Generate the html for a hidden section * - * @param int $sectionno The section number in the coruse which is being dsiplayed + * @param int $sectionno The section number in the course which is being displayed * @param int|stdClass $courseorid The course to get the section name for (object or just course id) * @return string HTML to output. */ From 5441c8fef44435268241de43c0c20aea49e4d885 Mon Sep 17 00:00:00 2001 From: Simey Lameze Date: Mon, 28 May 2018 09:38:16 +0800 Subject: [PATCH 2/2] MDL-57600 course: fix typo on courselib test --- course/tests/courselib_test.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/course/tests/courselib_test.php b/course/tests/courselib_test.php index 546b02040b1..249948d5aef 100644 --- a/course/tests/courselib_test.php +++ b/course/tests/courselib_test.php @@ -863,7 +863,7 @@ class core_course_courselib_testcase extends advanced_testcase { // Test move the marked section down.. move_section_to($course, 2, 4); - // Verify that the coruse marker has been moved along with the section.. + // Verify that the course marker has been moved along with the section.. $course = $DB->get_record('course', array('id' => $course->id)); $this->assertEquals(4, $course->marker);