Mercurial > hg > mgallery
diff mgtool.php @ 35:985596db0f01
Implement recursive depth album covers.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 02 May 2016 12:20:01 +0300 |
parents | 953b0f7636f4 |
children | 99dc0843d7df |
line wrap: on
line diff
--- a/mgtool.php Sat Apr 23 20:14:23 2016 +0300 +++ b/mgtool.php Mon May 02 12:20:01 2016 +0300 @@ -362,6 +362,13 @@ end($images); $parentEntry["image"] = key($images); } + else + foreach ($albums as $aid => &$adata) + if (isset($adata["image"])) + { + $parentEntry["image"] = &$adata; + break; + } $str = "<?\n".