Skip to content

Commit

Permalink
MDL-39764 style: phpdoc changed to inline comments
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Jun 3, 2013
1 parent b4a8c66 commit 4746dc5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
13 changes: 6 additions & 7 deletions course/format/topics/lib.php
Expand Up @@ -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');
Expand Down
13 changes: 6 additions & 7 deletions course/format/weeks/lib.php
Expand Up @@ -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');
Expand Down

0 comments on commit 4746dc5

Please sign in to comment.