gallery: Fix usernames/paths in the gallery
This commit is contained in:
parent
a2afa5862f
commit
575ee38243
|
@ -91,8 +91,8 @@ $imageTemplate = '
|
||||||
<?php
|
<?php
|
||||||
foreach ($images as $key => $value) {
|
foreach ($images as $key => $value) {
|
||||||
$modTime = date("d.m.Y H:i", filemtime($galleryDir . $value));
|
$modTime = date("d.m.Y H:i", filemtime($galleryDir . $value));
|
||||||
$imguser = explode("/", $value)[0];
|
$imguser = explode("/", $value)[1];
|
||||||
$displaypath = substr($value, strpos($value, "/")+1);
|
$displaypath = implode("/", array_slice(explode("/", $value), 2));
|
||||||
$realname = "Ukjent";
|
$realname = "Ukjent";
|
||||||
foreach ($unamepairs as $unamepair) {
|
foreach ($unamepairs as $unamepair) {
|
||||||
$unamepair = explode(":", $unamepair);
|
$unamepair = explode(":", $unamepair);
|
||||||
|
|
Loading…
Reference in New Issue