Hello
in the very simple extension exiftool_gps I call the command line binary exiftool via shell_exec and in case the tool is not available on the server a php warning is output ([Github] exiftool_gps issue #2).
What is the simplest way to output a warning from the extension - maybe during installation? - I do not want to add a smarty template for the extension just for the output of this check...
Thanks,
Rapha
Offline
Really nobody knows an easy way to print a warning from an extension?
Offline
Here's what I use:
array_push( $page['warnings'], l10n('CONSTANT') -or- sprintf('your warning message') );
Put the message in a yellow box with the exclamation point like this:
[Github] Piwigo-physical_photo_move file resources/ppm-virtual-merge.jpg
Last edited by windracer (2018-01-21 03:35:19)
Offline