summaryrefslogtreecommitdiff
path: root/includes/view
diff options
context:
space:
mode:
authorPhilip Häusler <msquare@notrademark.de>2015-12-20 10:35:03 +0100
committerPhilip Häusler <msquare@notrademark.de>2015-12-20 10:35:03 +0100
commit2cb44fe51752bece6413d3a4745cfba79df21884 (patch)
tree6c804d80b7cfd623ef31926abbd6421e570716b0 /includes/view
parentfacc32f13331498999ee07d467ea4ef420ebf190 (diff)
make angeltype names clickable
Diffstat (limited to 'includes/view')
-rw-r--r--includes/view/AngelTypes_view.php2
-rw-r--r--includes/view/User_view.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/includes/view/AngelTypes_view.php b/includes/view/AngelTypes_view.php
index ce38a096..758d5706 100644
--- a/includes/view/AngelTypes_view.php
+++ b/includes/view/AngelTypes_view.php
@@ -10,7 +10,7 @@
* @param AngelType $angeltype
*/
function AngelType_name_render($angeltype) {
- return '<a href="' . page_link_to('angeltypes') . '&action=view&angeltype_id=' . $angeltype['id'] . '">' . ($angeltype['restricted'] ? glyph('lock') : '') . $angeltype['name'] . '</a>';
+ return '<a href="' . angeltype_link($angeltype['id']) . '">' . ($angeltype['restricted'] ? glyph('lock') : '') . $angeltype['name'] . '</a>';
}
/**
diff --git a/includes/view/User_view.php b/includes/view/User_view.php
index 90e849a6..e5ed7e0e 100644
--- a/includes/view/User_view.php
+++ b/includes/view/User_view.php
@@ -269,7 +269,7 @@ function User_angeltypes_render($user_angeltypes) {
$class = 'text-warning';
else
$class = 'text-success';
- $output[] = '<span class="' . $class . '">' . ($angeltype['coordinator'] ? glyph('education') : '') . $angeltype['name'] . '</span>';
+ $output[] = '<a href="' . angeltype_link($angeltype['id']) . '" class="' . $class . '">' . ($angeltype['coordinator'] ? glyph('education') : '') . $angeltype['name'] . '</a>';
}
return join('<br />', $output);
}