git.shiar.nl
/
minimedit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
page: prefer meta description as article teaser
[minimedit.git]
/
foto
/
index.php
diff --git
a/foto/index.php
b/foto/index.php
index f438cb96a7f92dc4e8f9ad86375f4cc19ad0201e..358ef942aae9bf492c13358ad22b6cb685fbd4c1 100644
(file)
--- a/
foto/index.php
+++ b/
foto/index.php
@@
-19,7
+19,7
@@
if ($User and $User->admin) {
$nav = explode('/', $rootdir);
$nav[0] = "Foto's"; # override of root 'foto'
$title = array_pop($nav);
$nav = explode('/', $rootdir);
$nav[0] = "Foto's"; # override of root 'foto'
$title = array_pop($nav);
-$
Place['title']
= implode(' ', $nav) . ': ' . $title;
+$
Article->title
= implode(' ', $nav) . ': ' . $title;
$link = '';
print "<h2>";
$link = '';
print "<h2>";
@@
-79,7
+79,7
@@
if ($imgs = glob("$rootdir/*.jpg")) {
foreach ($imgs as $img) {
if ($img == "$rootdir/index.jpg") {
# cover image of current album
foreach ($imgs as $img) {
if ($img == "$rootdir/index.jpg") {
# cover image of current album
- $
Place['image'] = "/thumb/640x
/$img";
+ $
Article->image = "
/$img";
continue;
}
if (!is_link($img)) continue;
continue;
}
if (!is_link($img)) continue;