Merge branch 'MDL-46479-master' of git://github.com/ankitagarwal/moodle

This commit is contained in:
Dan Poltawski
2015-06-01 12:36:25 +01:00
+2 -8
View File
@@ -1538,17 +1538,11 @@ abstract class enrol_plugin {
}
/**
* Is it possible to delete enrol instance via standard UI?
*
* @deprecated since Moodle 2.8 MDL-35864 - please use can_delete_instance() instead.
* @todo MDL-46479 This will be deleted in Moodle 3.0.
* @see class_name::can_delete_instance()
* @param object $instance
* @return bool
*/
public function instance_deleteable($instance) {
debugging('Function enrol_plugin::instance_deleteable() is deprecated', DEBUG_DEVELOPER);
return $this->can_delete_instance($instance);
throw new coding_exception('Function enrol_plugin::instance_deleteable() is deprecated, use
enrol_plugin::can_delete_instance() instead');
}
/**