Mercurial > hg > mgallery
changeset 112:b1834e342e73
Cleanups.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 20 Mar 2017 14:39:01 +0200 |
parents | 9da8bab49711 |
children | 4f95ed80583c |
files | mgallery.php |
diffstat | 1 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/mgallery.php Thu Jan 19 09:43:31 2017 +0200 +++ b/mgallery.php Mon Mar 20 14:39:01 2017 +0200 @@ -273,10 +273,7 @@ $rowLimit = mgGetSetting("album_row_limit"); $n = 0; - if ($galUseTables) - echo "<table class=\"galleryTable ".$class."\">\n"; - else - echo "<div class=\"galleryTable ".$class."\">\n"; + echo "<".($galUseTables ? "table" : "div")." class=\"galleryTable ".$class."\">\n"; for ($index = $start; $index < $end; $index++) { @@ -368,7 +365,9 @@ echo "</table>\n"; } else + { echo "</div>\n"; + } return $index; }