fix broken watermark links

This commit is contained in:
cajun
2024-09-29 10:46:12 -05:00
parent 5abb168dc4
commit 56318f0e14

View File

@@ -2311,7 +2311,7 @@ custom_watermark_link := {
field := set["custom_watermark_"+input]
array := split_comma(field)
#### not blank, has png, is either verified or old link that's probably fine
if array.0 != "" and has_png(array.0) and array.1 or else "" != "Not found"
if array.0 != "" and (has_png(array.0) and array.1 or else "" != "Not found")
then "/magic-mainframe-extras.mse-include/"+field
else "/magic-modules.mse-include/watermarks/other/planeswalker.png"
}
@@ -2321,7 +2321,7 @@ custom_card_watermark := {
field := styling["card_watermark"+tag] or else ""
array := split_comma(field)
#### not blank, has png, is either verified or old link that's probably fine
if array.0 != "" and has_png(array.0) and array.1 or else "" != "Not found"
if array.0 != "" and (has_png(array.0) and array.1 or else "" != "Not found")
then "/magic-mainframe-extras.mse-include/" + field
else if card_watermark_a() != "" then "/magic-mainframe-extras.mse-include/" + card_watermark_a()
else "/magic-modules.mse-include/watermarks/other/planeswalker.png"