diff options
Diffstat (limited to '')
-rw-r--r-- | admin/history.php | 2 | ||||
-rw-r--r-- | admin/include/functions.php | 2 | ||||
-rw-r--r-- | admin/tags.php | 6 |
3 files changed, 5 insertions, 5 deletions
diff --git a/admin/history.php b/admin/history.php index f81c7f4cb..8307d5e32 100644 --- a/admin/history.php +++ b/admin/history.php @@ -343,7 +343,7 @@ SELECT $result = pwg_query($query); while ($row=pwg_db_fetch_assoc($result)) { - $name_of_tag[ $row['id'] ] = '<a href="'.make_index_url( array('tags'=>array($row))).'">'.trigger_event("render_tag_name", $row['name']).'</a>'; + $name_of_tag[ $row['id'] ] = '<a href="'.make_index_url( array('tags'=>array($row))).'">'.trigger_event("render_tag_name", $row['name'], $row).'</a>'; } } diff --git a/admin/include/functions.php b/admin/include/functions.php index f37b609a2..ba6cdf40d 100644 --- a/admin/include/functions.php +++ b/admin/include/functions.php @@ -2154,7 +2154,7 @@ function get_taglist($query, $only_user_language=true) while ($row = pwg_db_fetch_assoc($result)) { $raw_name = $row['name']; - $name = trigger_event('render_tag_name', $raw_name); + $name = trigger_event('render_tag_name', $raw_name, $row); $taglist[] = array( 'name' => $name, diff --git a/admin/tags.php b/admin/tags.php index 92fe18c6a..92a38e805 100644 --- a/admin/tags.php +++ b/admin/tags.php @@ -218,7 +218,7 @@ SELECT $result = pwg_query($query); while ($row = pwg_db_fetch_assoc($result)) { - $name_of_tag[ $row['id'] ] = trigger_event('render_tag_name', $row['name']); + $name_of_tag[ $row['id'] ] = trigger_event('render_tag_name', $row['name'], $row); } $tag_ids_to_delete = array_diff( @@ -358,7 +358,7 @@ $orphan_tags = get_orphan_tags(); $orphan_tag_names = array(); foreach ($orphan_tags as $tag) { - $orphan_tag_names[] = trigger_event('render_tag_name', $tag['name']); + $orphan_tag_names[] = trigger_event('render_tag_name', $tag['name'], $tag); } if (count($orphan_tag_names) > 0) @@ -393,7 +393,7 @@ $all_tags = array(); while ($tag = pwg_db_fetch_assoc($result)) { $raw_name = $tag['name']; - $tag['name'] = trigger_event('render_tag_name', $raw_name); + $tag['name'] = trigger_event('render_tag_name', $raw_name, $tag); $tag['counter'] = intval(@$tag_counters[ $tag['id'] ]); $tag['U_VIEW'] = make_index_url(array('tags'=>array($tag))); $tag['U_EDIT'] = 'admin.php?page=batch_manager&filter=tag-'.$tag['id']; |