MDL-32338 Libraries : made pluginlib.php cron_execute handle the exceptions it faces.

This commit is contained in:
Aparup Banerjee
2012-05-04 11:25:42 +08:00
parent aa753ac24f
commit fd87d0bf78
+5 -5
View File
@@ -1100,12 +1100,12 @@ class available_update_checker {
*/
protected function cron_execute() {
$this->restore_response();
$previous = $this->recentresponse;
$this->fetch();
$this->restore_response(true);
$current = $this->recentresponse;
try {
$this->restore_response();
$previous = $this->recentresponse;
$this->fetch();
$this->restore_response(true);
$current = $this->recentresponse;
$changes = $this->compare_responses($previous, $current);
$notifications = $this->cron_notifications($changes);
$this->cron_notify($notifications);