# HG changeset patch # User Matti Hamalainen # Date 1490013541 -7200 # Node ID b1834e342e73e55f53b3be84ea5de72537a017eb # Parent 9da8bab4971183f2c9e344822265b552191a12ec Cleanups. diff -r 9da8bab49711 -r b1834e342e73 mgallery.php --- 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 "\n"; - else - echo "
\n"; + echo "<".($galUseTables ? "table" : "div")." class=\"galleryTable ".$class."\">\n"; for ($index = $start; $index < $end; $index++) { @@ -368,7 +365,9 @@ echo "
\n"; } else + { echo "\n"; + } return $index; }