Mercurial > hg > mgallery
changeset 90:3953f534c874
Add "hidden" request item setting "tables" to force use or disuse of table elements for layout.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 15 Sep 2016 17:33:40 +0300 |
parents | d9524db8f6a5 |
children | f6e77f23c30b |
files | mgallery.php |
diffstat | 1 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mgallery.php Thu Sep 15 17:32:32 2016 +0300 +++ b/mgallery.php Thu Sep 15 17:33:40 2016 +0300 @@ -512,6 +512,17 @@ } +// Check "tables" setting +if (isset($_REQUEST["tables"])) +{ + $galUseTables = mgGetRequestItem("tables", FALSE, TRUE); + mgSetCookie("mgtables", $galUseTables ? 1 : 0); +} +else +if (isset($_COOKIE["mgtables"])) + $galUseTables = intval($_COOKIE["mgtables"]); + + // // Attempt to read the data cache file //