Skip to content

Commit

Permalink
Allow setting of layout in request
Browse files Browse the repository at this point in the history
  • Loading branch information
Isaac Connor committed Sep 13, 2024
1 parent 0af4419 commit 2b1b380
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions web/skins/classic/views/montage.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,11 @@
zm_session_start();

$layout_id = 0;
if ( isset($_COOKIE['zmMontageLayout']) ) {
if (isset($_REQUEST['zmMontageLayout'])) {
$layout_id = $_SESSION['zmMontageLayout'] = validCardinal($_REQUEST['zmMontageLayout']);
} else if ( isset($_COOKIE['zmMontageLayout']) ) {
$layout_id = $_SESSION['zmMontageLayout'] = validCardinal($_COOKIE['zmMontageLayout']);
} elseif ( isset($_SESSION['zmMontageLayout']) ) {
} else if ( isset($_SESSION['zmMontageLayout']) ) {
$layout_id = validCardinal($_SESSION['zmMontageLayout']);
}
if (!$layout_id || !isset($layoutsById[$layout_id])) {
Expand Down

0 comments on commit 2b1b380

Please sign in to comment.