added #192 to changelog

This commit is contained in:
azett 2023-01-22 13:43:14 +01:00
parent 1886dcd258
commit 024508392b
2 changed files with 2 additions and 2 deletions

View File

@ -17,6 +17,7 @@
- LastCommentsAdmin plugin will not even attempt to delete or rebuild LastComments caches if LastComments plugin is not available ([#43](https://github.com/flatpressblog/flatpress/issues/43))
- Fixed errors on the Comment Center config page ([#90](https://github.com/flatpressblog/flatpress/issues/90))
- Fixed PHP warnings in Akismet plugin ([#83](https://github.com/flatpressblog/flatpress/issues/83))
- BBCode plugin: Allows local video files ("attachs/video.mp4") and outputs valid HTML ([#192](https://github.com/flatpressblog/flatpress/issues/192))
## Themes
- Leggero

View File

@ -378,12 +378,11 @@ function do_bbcode_video($action, $attr, $content, $params, $node_object) {
<div class="fb-video bbcode_video bbcode_video_facebook ' . $floatClass . '" data-href="' . $vid . '" data-allowfullscreen="true" data-width="' . $width . '"></div>';
break;
// Any video file that can be played with HTML5 <video> element
// FIXME: support of uploaded video files ($attr ['default'] is like "attachs/video.mp4") still to be implemented!
case 'html5':
default:
// get the video path from the default attribute
$videoPath = $attr ['default'];
// if it's local ("/attachs/video.mp4") ...
// if it's local ("attachs/video.mp4") ...
$video_is_local = bbcode_remap_url($videoPath);
if ($video_is_local) {
// ... we need to prepend it with the blog base URL