Skip to content
Permalink
Browse files

MDL-39764 style: phpdoc changed to inline comments

  • Loading branch information...
stronk7 committed Jun 3, 2013
1 parent 00169e8 commit aed9401e1471cb1a33420992c81caf57b14e3056
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 aed9401

Please sign in to comment.
You can’t perform that action at this time.