update map naming structure in index.php

This commit is contained in:
hbrain 2026-06-02 07:52:08 +02:00
parent 9e3cbc48ff
commit f91f84c12d

View file

@ -404,7 +404,7 @@ $siteHeaderTitle = $headerTitles[array_rand($headerTitles)];
<div class="video-wrapper">
<video controls controlsList="nodownload" oncontextmenu="return false" preload="metadata" src="<?=h($url)?>"<?= $posterUrl !== '' ? ' poster="'.h($posterUrl).'"' : '' ?>></video>
<?php
$map = pathinfo($name, PATHINFO_FILENAME).".png";
$map = pathinfo($name, PATHINFO_FILENAME)."_map.png";
$hideMap = !empty($hiddenMapOutputs[$name]);
if(!$hideMap && is_file($config['videos_dir']."/".$map)):
?>