From c06b9fc476960f60b79138dc539f95210265c0d4 Mon Sep 17 00:00:00 2001 From: Terranom674 Date: Sat, 5 Sep 2026 23:30:06 +0200 Subject: [PATCH] Refresh affected previews after album watermark rule changes --- tools/album_rules.inc.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/album_rules.inc.php b/tools/album_rules.inc.php index eae4c7b..84d3218 100644 --- a/tools/album_rules.inc.php +++ b/tools/album_rules.inc.php @@ -61,7 +61,12 @@ function bratonien_tools_save_album_rule() ))); } - return array('message'=>'Albumregel gespeichert.'); + if (function_exists('bratonien_tools_presentation_refresh_enqueue')) + { + bratonien_tools_presentation_refresh_enqueue(array($category), 'album-watermark-rule-changed'); + } + + return array('message'=>'Albumregel gespeichert. Betroffene Vorschauen werden im Hintergrund aktualisiert.'); } function bratonien_tools_get_category_tree()