aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authormistic100 <mistic@piwigo.org>2014-01-12 11:24:02 +0000
committermistic100 <mistic@piwigo.org>2014-01-12 11:24:02 +0000
commit81ac87bc81b912c81eeb64e32701da68626a3e1b (patch)
tree5393037986970c6a866049a19c350868a943a0a4 /include
parent95dd3b88ec243c12dd3aa91cf09dbfc6b58694ec (diff)
render_tag_name trigger transmit full tag data as second parameter
git-svn-id: http://piwigo.org/svn/trunk@26649 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include')
-rw-r--r--include/functions_html.inc.php2
-rw-r--r--include/functions_search.inc.php2
-rw-r--r--include/functions_tag.inc.php6
3 files changed, 5 insertions, 5 deletions
diff --git a/include/functions_html.inc.php b/include/functions_html.inc.php
index bd771ba20..8cad4e395 100644
--- a/include/functions_html.inc.php
+++ b/include/functions_html.inc.php
@@ -463,7 +463,7 @@ function get_tags_content_title()
.'" title="'
.l10n('display photos linked to this tag')
.'">'
- .trigger_event('render_tag_name', $page['tags'][$i]['name'])
+ .trigger_event('render_tag_name', $page['tags'][$i]['name'], $page['tags'][$i])
.'</a>';
if (count($page['tags']) > 2)
diff --git a/include/functions_search.inc.php b/include/functions_search.inc.php
index aea27ce43..66452459e 100644
--- a/include/functions_search.inc.php
+++ b/include/functions_search.inc.php
@@ -582,7 +582,7 @@ SELECT t.*, COUNT(image_id) AS counter
usort($all_tags, 'tag_alpha_compare');
foreach ( $all_tags as &$tag )
{
- $tag['name'] = trigger_event('render_tag_name', $tag['name']);
+ $tag['name'] = trigger_event('render_tag_name', $tag['name'], $tag);
}
}
diff --git a/include/functions_tag.inc.php b/include/functions_tag.inc.php
index d38440010..6e047c502 100644
--- a/include/functions_tag.inc.php
+++ b/include/functions_tag.inc.php
@@ -89,7 +89,7 @@ SELECT *
if ( $counter )
{
$row['counter'] = $counter;
- $row['name'] = trigger_event('render_tag_name', $row['name']);
+ $row['name'] = trigger_event('render_tag_name', $row['name'], $row);
$tags[] = $row;
}
}
@@ -111,7 +111,7 @@ SELECT *
$tags = array();
while ($row = pwg_db_fetch_assoc($result))
{
- $row['name'] = trigger_event('render_tag_name', $row['name']);
+ $row['name'] = trigger_event('render_tag_name', $row['name'], $row);
$tags[] = $row;
}
@@ -277,7 +277,7 @@ SELECT t.*, count(*) AS counter
$tags = array();
while($row = pwg_db_fetch_assoc($result))
{
- $row['name'] = trigger_event('render_tag_name', $row['name']);
+ $row['name'] = trigger_event('render_tag_name', $row['name'], $row);
$tags[] = $row;
}
usort($tags, 'tag_alpha_compare');