diff --git a/admin/history.php b/admin/history.php index 0412113f5..25a25ee67 100644 --- a/admin/history.php +++ b/admin/history.php @@ -337,9 +337,14 @@ SELECT $query = ' SELECT id, - name + name, url_name FROM '.TAGS_TABLE; - $name_of_tag = simple_hash_from_query($query, 'id', 'name'); + $name_of_tag = array(); + $result = pwg_query($query); + while ($row=pwg_db_fetch_assoc($result)) + { + $name_of_tag[ $row['id'] ] = ''.trigger_event("render_tag_name", $row['name']).''; + } } $i = 0; diff --git a/admin/themes/default/template/history.tpl b/admin/themes/default/template/history.tpl index 717893c7e..74fdf52c5 100644 --- a/admin/themes/default/template/history.tpl +++ b/admin/themes/default/template/history.tpl @@ -105,6 +105,7 @@ {if !empty($navbar) }{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if}
| {'Date'|@translate} | {'Time'|@translate} | @@ -113,10 +114,10 @@{'Element'|@translate} | {'Element type'|@translate} | {'Section'|@translate} | -{'Album'|@translate} | -{'Tags'|@translate} | +{'Album'|@translate} / {'Tags'|@translate} |
|---|---|---|---|---|---|---|---|
| {$detail.DATE} | @@ -126,8 +127,7 @@{$detail.IMAGE} | {$detail.TYPE} | {$detail.SECTION} | -{$detail.CATEGORY} | -{$detail.TAGS} | +{$detail.CATEGORY}{$detail.TAGS} |