1
0
Fork 0
mirror of https://git.friendi.ca/friendica/friendica.git synced 2025-07-12 01:08:49 +00:00

Merge pull request #14994 from mf-fx/remove_duplicate_class_attribute

BBCode: Remove duplicate class attribute
This commit is contained in:
Michael Vogel 2025-06-26 06:39:27 +02:00 committed by GitHub
commit 8585ed9da8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1837,7 +1837,7 @@ class BBCode
);
$text = preg_replace("/\[img\=([0-9]*)x([0-9]*)\](.*?)\[\/img\]/ism", '<img src="$3" style="width: $1px;" alt="" class="empty-description">', $text);
$text = preg_replace("/\[zmg\=([0-9]*)x([0-9]*)\](.*?)\[\/zmg\]/ism", '<img class="zrl" src="$3" style="width: $1px;" alt="" class="empty-description">', $text);
$text = preg_replace("/\[zmg\=([0-9]*)x([0-9]*)\](.*?)\[\/zmg\]/ism", '<img class="empty-description zrl" src="$3" style="width: $1px;" alt="">', $text);
$text = preg_replace_callback(
"/\[[iz]mg\=(.*?)\](.*?)\[\/[iz]mg\]/ism",