gallery: Fix usernames/paths in the gallery

This commit is contained in:
Felix Albrigtsen 2024-04-06 23:04:30 +02:00 committed by h7x4
parent a2afa5862f
commit 575ee38243
Signed by: oysteikt
GPG Key ID: 9F2F7D8250F35146
1 changed files with 2 additions and 2 deletions

View File

@ -91,8 +91,8 @@ $imageTemplate = '
<?php
foreach ($images as $key => $value) {
$modTime = date("d.m.Y H:i", filemtime($galleryDir . $value));
$imguser = explode("/", $value)[0];
$displaypath = substr($value, strpos($value, "/")+1);
$imguser = explode("/", $value)[1];
$displaypath = implode("/", array_slice(explode("/", $value), 2));
$realname = "Ukjent";
foreach ($unamepairs as $unamepair) {
$unamepair = explode(":", $unamepair);