Beispiel #1
0
 /**
  * Populates the property {@link $availableupdates} with the information provided by
  * available update checker
  *
  * @param \core\update\checker $provider the class providing the available update info
  */
 public function check_available_updates(\core\update\checker $provider)
 {
     global $CFG;
     if (isset($CFG->updateminmaturity)) {
         $minmaturity = $CFG->updateminmaturity;
     } else {
         // This can happen during the very first upgrade to 2.3 .
         $minmaturity = MATURITY_STABLE;
     }
     $this->availableupdates = $provider->get_update_info($this->component, array('minmaturity' => $minmaturity));
 }