Permalink
Browse files

MDL-39764 style: phpdoc changed to inline comments

  • Loading branch information...
1 parent b4a8c66 commit 4746dc557a2a6c5d81eeb05f4707b3fe15cee731 @stronk7 stronk7 committed Jun 3, 2013
Showing with 12 additions and 14 deletions.
  1. +6 −7 course/format/topics/lib.php
  2. +6 −7 course/format/weeks/lib.php
@@ -268,13 +268,12 @@ public function course_format_options($foreditform = false) {
*/
public function create_edit_form_elements(&$mform, $forsection = false) {
$elements = parent::create_edit_form_elements($mform, $forsection);
- /*
- * Increase the number of sections combo box values if the user has increased the number of sections
- * using the icon on the course page beyond course 'maxsections' or course 'maxsections' has been
- * reduced below the number of sections already set for the course on the site administration course
- * defaults page. This is so that the number of sections is not reduced leaving unintended orphaned
- * activities / resources.
- */
+
+ // Increase the number of sections combo box values if the user has increased the number of sections
+ // using the icon on the course page beyond course 'maxsections' or course 'maxsections' has been
+ // reduced below the number of sections already set for the course on the site administration course
+ // defaults page. This is so that the number of sections is not reduced leaving unintended orphaned
+ // activities / resources.
if (!$forsection) {
$maxsections = get_config('moodlecourse', 'maxsections');
$numsections = $mform->getElementValue('numsections');
@@ -273,13 +273,12 @@ public function course_format_options($foreditform = false) {
*/
public function create_edit_form_elements(&$mform, $forsection = false) {
$elements = parent::create_edit_form_elements($mform, $forsection);
- /*
- * Increase the number of sections combo box values if the user has increased the number of sections
- * using the icon on the course page beyond course 'maxsections' or course 'maxsections' has been
- * reduced below the number of sections already set for the course on the site administration course
- * defaults page. This is so that the number of sections is not reduced leaving unintended orphaned
- * activities / resources.
- */
+
+ // Increase the number of sections combo box values if the user has increased the number of sections
+ // using the icon on the course page beyond course 'maxsections' or course 'maxsections' has been
+ // reduced below the number of sections already set for the course on the site administration course
+ // defaults page. This is so that the number of sections is not reduced leaving unintended orphaned
+ // activities / resources.
if (!$forsection) {
$maxsections = get_config('moodlecourse', 'maxsections');
$numsections = $mform->getElementValue('numsections');

0 comments on commit 4746dc5

Please sign in to comment.