/**
* Inndicates fatal error. This function was originally printing the
* error message directly, since 2.0 it is throwing exception instead.
- * The error printing is handled in default exception hadnler.
+ * The error printing is handled in default exception handler.
*
* Old method, don't call directly in new code - use print_error instead.
*
$this->assertEqual(get_class($e), 'dml_transaction_exception');
}
$this->assertEqual(2, $DB->count_records($tablename)); // not rolled back yet
- // the forced rollback is done from the default_exception hadnler and similar places,
+ // the forced rollback is done from the default_exception handler and similar places,
// let's do it manually here
$this->assertTrue($DB->is_transaction_started());
$DB->force_transaction_rollback();
} catch (Exception $e) {
$this->assertEqual(get_class($e), 'dml_transaction_exception');
}
- // this is done in default exception hadnler usually
+ // this is done in default exception handler usually
$this->assertTrue($DB->is_transaction_started());
$this->assertEqual(2, $DB->count_records($tablename)); // not rolled back yet
$DB->force_transaction_rollback();
// the rollback was used already once, no way to use it again
$this->assertEqual(get_class($e), 'dml_transaction_exception');
}
- // this is done in default exception hadnler usually
+ // this is done in default exception handler usually
$this->assertTrue($DB->is_transaction_started());
$DB->force_transaction_rollback();
$DB->delete_records($tablename);
// we need to send them to queue instead - this is slow but necessary.
// It could be improved in future by adding internal/external flag to each handler.
- $DB->set_field('events_handlers', 'status', ($hadnler->status+1), array('id'=>$handler->id));
+ $DB->set_field('events_handlers', 'status', ($handler->status+1), array('id'=>$handler->id));
// reset static handler cache
events_get_handlers('reset');