Konvertiere alle <html5media>-Tags im Wikitext auf MediaWiki-Standard [[Datei:...]]
Deploy Development / deploy (push) Successful in 39s

This commit is contained in:
Lars Stommer committed 2026-10-24 21:18:40 +02:00
1 parent 86b9bbdb78
commit 5f7e304f28
5 files changed
+155 -2

No files matched your search

@@ -37,6 +37,9 @@ class KarateVideoHandler extends MediaHandler {
}
public function normaliseParams( $image, &$params ): bool {
if ( ( !isset( $params['width'] ) || $params['width'] <= 0 ) && isset( $params['height'] ) && $params['height'] > 0 ) {
$params['width'] = (int)round( $params['height'] * 16 / 9 );
}
if ( !isset( $params['width'] ) || $params['width'] <= 0 ) {
$params['width'] = 320;
}