From 78b500b4027c74ccf7c4bf887183918f37307ddd Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Sun, 10 Feb 2019 23:40:25 +0100 Subject: [PATCH] foto: og metadata for current album title, image --- foto/index.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/foto/index.php b/foto/index.php index cd939f3..ee37df1 100644 --- a/foto/index.php +++ b/foto/index.php @@ -19,6 +19,7 @@ if (!empty($User['admin'])) { $nav = explode('/', $rootdir); $nav[0] = "Foto's"; # override of root 'foto' $title = array_pop($nav); +$Place['title'] = implode(' ', $nav) . ': ' . $title; $link = ''; print "

"; @@ -76,7 +77,11 @@ if ($imgs = glob("$rootdir/*", GLOB_ONLYDIR)) { if ($imgs = glob("$rootdir/*.jpg")) { print '