Also pass $info in render_element_name #1035

Closed
opened 2026-10-05 00:29:10 +02:00 by adam · 0 comments
Owner

Currently trigger_change for render_element_name only passes the name of the image.

https://github.com/Piwigo/Piwigo/blob/5bf85c982b2b7f3e63fefb2d8cfea7a8bcc9e591/include/functions_html.inc.php#L513-L527

It would be helpful to pass the whole $info so that we can use data (e.g., creation date) in $info to modify the image title:

trigger_change('render_element_name', $info['name'], $info); 

This is like what trigger_change for get_thumbnail_title does:

https://github.com/Piwigo/Piwigo/blob/5bf85c982b2b7f3e63fefb2d8cfea7a8bcc9e591/include/functions_html.inc.php#L586

Currently `trigger_change` for `render_element_name` only passes the name of the image. https://github.com/Piwigo/Piwigo/blob/5bf85c982b2b7f3e63fefb2d8cfea7a8bcc9e591/include/functions_html.inc.php#L513-L527 It would be helpful to pass the whole `$info` so that we can use data (e.g., creation date) in `$info` to modify the image title: ```php trigger_change('render_element_name', $info['name'], $info); ``` This is like what `trigger_change` for `get_thumbnail_title` does: https://github.com/Piwigo/Piwigo/blob/5bf85c982b2b7f3e63fefb2d8cfea7a8bcc9e591/include/functions_html.inc.php#L586 <!-- github-sync-id:646671588 -->
adam closed this issue 2026-10-05 00:29:10 +02:00
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#1035