Commit 25320b8a authored by Nigel McNie's avatar Nigel McNie
Browse files

Give views an icon on the tag search page.



Icon to come from Evonne.
Signed-off-by: default avatarNigel McNie <nigel@catalyst.net.nz>
parent 77bcbf15
...@@ -2182,11 +2182,13 @@ function random_string($length=15) { ...@@ -2182,11 +2182,13 @@ function random_string($length=15) {
} }
function build_portfolio_search_html(&$data) { function build_portfolio_search_html(&$data) {
global $THEME;
$artefacttypes = get_records_assoc('artefact_installed_type'); $artefacttypes = get_records_assoc('artefact_installed_type');
foreach ($data->data as &$item) { foreach ($data->data as &$item) {
$item->ctime = format_date($item->ctime); $item->ctime = format_date($item->ctime);
if ($item->type == 'view') { if ($item->type == 'view') {
$item->typestr = get_string('view'); $item->typestr = get_string('view');
$item->icon = $THEME->get_url('images/view.gif');
$item->url = get_config('wwwroot') . 'view/view.php?id=' . $item->id; $item->url = get_config('wwwroot') . 'view/view.php?id=' . $item->id;
} }
else { // artefact else { // artefact
......
Markdown is supported
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