Mercurial > hg > mgallery
diff mgallery.inc.php @ 293:486398fb60ea
Allow album-specific {tn,med}_{width,height,format} settings.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 01 Aug 2019 15:26:08 +0300 |
parents | 19fbf800b1f7 |
children | 38f510786d88 |
line wrap: on
line diff
--- a/mgallery.inc.php Thu Aug 01 15:11:12 2019 +0300 +++ b/mgallery.inc.php Thu Aug 01 15:26:08 2019 +0300 @@ -198,6 +198,15 @@ } +function mgGetAlbumSetting(&$data, $key, $default = NULL) +{ + if (array_key_exists($key, $data)) + return $data[$key]; + else + return mgGetSetting($key, $default); +} + + function mgGetPath($path, $key) { $val = mgGetSetting($key);