MDL-32338 Libraries : made pluginlib.php cron_execute handle the exceptions it faces.
This commit is contained in:
+5
-5
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user