Merge branch 'MDL-38035-master' of git://github.com/sammarshallou/moodle
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Tue, 19 Mar 2013 22:54:27 +0000 (23:54 +0100)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Tue, 19 Mar 2013 22:54:27 +0000 (23:54 +0100)
1  2 
course/editsection_form.php

@@@ -54,9 -51,10 +54,10 @@@ class editsection_form extends moodlefo
  
          $mform  = $this->_form;
          $course = $this->_customdata['course'];
+         $context = context_course::instance($course->id);
  
          if (!empty($CFG->enableavailability)) {
 -            $mform->addElement('header', '', get_string('availabilityconditions', 'condition'));
 +            $mform->addElement('header', 'availabilityconditions', get_string('availabilityconditions', 'condition'));
              // String used by conditions more than once
              $strcondnone = get_string('none', 'condition');
              // Grouping conditions - only if grouping is enabled at site level