mirror of
https://github.com/Terranom674/Piwigo_Bratonien_Tools.git
synced 2026-09-19 17:34:31 +00:00
Queue watermark precache after rule and profile changes
This commit is contained in:
14
admin.php
14
admin.php
@@ -30,6 +30,20 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['bratonien_tool']))
|
|||||||
{
|
{
|
||||||
$messages[] = $result['message'];
|
$messages[] = $result['message'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (in_array($tool_id, array(
|
||||||
|
'watermark_save',
|
||||||
|
'watermark_engine',
|
||||||
|
'watermark_profile_save',
|
||||||
|
'watermark_profile_delete',
|
||||||
|
'watermark_profile_duplicate',
|
||||||
|
'watermark_defaults',
|
||||||
|
'watermark_rule',
|
||||||
|
), true))
|
||||||
|
{
|
||||||
|
bratonien_tools_request_watermark_precache();
|
||||||
|
$messages[] = 'Wasserzeichen-Precache wurde vorgemerkt.';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch (Throwable $e)
|
catch (Throwable $e)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user