Mega PR: Update deps, consolidate config, build with nix, gallery fixes, etc. #53

Merged
felixalb merged 12 commits from nixify-ng into master 2024-04-10 21:45:10 +02:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit 7f269f05d6 - Show all commits

View File

@ -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);