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
06fab5a9
Commit
06fab5a9
authored
May 20, 2009
by
Nigel McNie
Browse files
Trash the make_link() function which is all but worthless.
(cherry picked from commit 019a972509947a4600fa284e859362aae572622f)
parent
a83098d1
Changes
2
Hide whitespace changes
Inline
Side-by-side
htdocs/artefact/internal/lib.php
View file @
06fab5a9
...
...
@@ -448,7 +448,7 @@ class ArtefactTypeWebAddress extends ArtefactTypeProfileField {
public
function
render_self
(
$options
)
{
if
(
array_key_exists
(
'link'
,
$options
)
&&
$options
[
'link'
]
==
true
)
{
$html
=
make_link
(
$this
->
title
);
$html
=
'<a href="'
.
hsc
(
$this
->
title
)
.
'">'
.
hsc
(
$this
->
title
)
.
'</a>'
;
}
else
{
$html
=
$this
->
title
;
...
...
htdocs/lib/web.php
View file @
06fab5a9
...
...
@@ -1437,10 +1437,6 @@ function pieform_get_help(Pieform $form, $element) {
$form
->
get_name
(),
$element
[
'name'
]);
}
function
make_link
(
$url
)
{
return
'<a href="'
.
$url
.
'">'
.
$url
.
'</a>'
;
}
/**
* Returns the entries in the standard admin menu
...
...
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