Commit cf285541 authored by Penny Leach's avatar Penny Leach
Browse files

added helper function artefact_can_render_to

parent 46b8ee6c
......@@ -1295,6 +1295,10 @@ function rebuild_artefact_parent_cache_complete() {
function artefact_can_render_to($type, $format) {
return in_array($format, call_static_method(generate_artefact_class_name($type), 'get_render_list'));
function artefact_instance_from_id($id) {
$prefix = get_config('dbprefix');
$sql = 'SELECT a.*, i.plugin
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment