Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
92b8d352
Commit
92b8d352
authored
Sep 28, 2007
by
Penny Leach
Committed by
Nigel McNie
Oct 17, 2007
Browse files
added a missing function to the artefacxt type profile base class
parent
7bf7afe9
Changes
2
Hide whitespace changes
Inline
Side-by-side
htdocs/artefact/internal/lib.php
View file @
92b8d352
...
...
@@ -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
{
...
...
htdocs/artefact/resume/lib.php
View file @
92b8d352
...
...
@@ -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
)
{
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment