Commit 06fab5a9 authored by Nigel McNie's avatar Nigel McNie
Browse files

Trash the make_link() function which is all but worthless.

(cherry picked from commit 019a972509947a4600fa284e859362aae572622f)
parent a83098d1
......@@ -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;
......
......@@ -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
......
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