mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-06 01:42:29 +02:00
... and in several API methods add new output fields name_raw and comment_raw that are ready for edition
This commit is contained in:
@@ -109,6 +109,7 @@ SELECT *
|
||||
if (isset($tag_counters[ $row['id'] ]))
|
||||
{
|
||||
$row['counter'] = intval($tag_counters[ $row['id'] ]);
|
||||
$row['name_raw'] = $row['name'];
|
||||
$row['name'] = trigger_change('render_tag_name', $row['name'], $row);
|
||||
$tags[] = $row;
|
||||
}
|
||||
@@ -131,6 +132,7 @@ SELECT *
|
||||
$tags = array();
|
||||
while ($row = pwg_db_fetch_assoc($result))
|
||||
{
|
||||
$row['name_raw'] = $row['name'];
|
||||
$row['name'] = trigger_change('render_tag_name', $row['name'], $row);
|
||||
$tags[] = $row;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user