Commit 92b8d352 authored by Penny Leach's avatar Penny Leach Committed by Nigel McNie
Browse files

added a missing function to the artefacxt type profile base class

parent 7bf7afe9
......@@ -341,6 +341,10 @@ class ArtefactTypeProfileField extends ArtefactTypeProfile {
public static function collapse_config() {
return 'profile';
}
public function render_self($options) {
return array('html' => $this->title, 'javascript' => null);
}
}
class ArtefactTypeCachedProfileField extends ArtefactTypeProfileField {
......
......@@ -143,7 +143,7 @@ class ArtefactTypeContactinformation extends ArtefactTypeResume {
foreach ($fields as $f) {
try {
$$f = artefact_instance_from_type($f);
$rendered = $$f->render_self();
$rendered = $$f->render_self(array());
$smarty->assign($f, $rendered['html']);
}
catch (Exception $e) { }
......
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