Changeset 30368 for extensions/Fotorama


Ignore:
Timestamp:
Nov 5, 2014, 10:24:29 AM (9 years ago)
Author:
JanisV
Message:

Fixed missed values in config

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Fotorama/admin.php

    r30052 r30368  
    88if (isset($_POST['submit']))
    99{
     10  $old_conf = $conf;
     11
    1012  $conf['Fotorama'] = array(
    1113    'shadows' => isset($_POST['shadows']),
     
    2527  if (isset($_POST['allowfullscreen']))
    2628    $conf['Fotorama']['allowfullscreen'] = $_POST['allowfullscreen'];
     29  else
     30    $conf['Fotorama']['allowfullscreen'] = $old_conf['Fotorama']['allowfullscreen'];
    2731  if (isset($_POST['fit']))
    2832    $conf['Fotorama']['fit'] = $_POST['fit'];
     33  else
     34    $conf['Fotorama']['fit'] = $old_conf['Fotorama']['fit'];
    2935  if (isset($_POST['transition']))
    3036    $conf['Fotorama']['transition'] = $_POST['transition'];
     37  else
     38    $conf['Fotorama']['transition'] = $old_conf['Fotorama']['transition'];
    3139  if (isset($_POST['nav']))
    3240    $conf['Fotorama']['nav'] = $_POST['nav'];
     41  else
     42    $conf['Fotorama']['nav'] = $old_conf['Fotorama']['nav'];
    3343  if (isset($_POST['fullscreen_nav']))
    3444    $conf['Fotorama']['fullscreen_nav'] = $_POST['fullscreen_nav'];
     45  else
     46    $conf['Fotorama']['fullscreen_nav'] = $old_conf['Fotorama']['fullscreen_nav'];
    3547  if (isset($_POST['thumbheight']))
    3648    $conf['Fotorama']['thumbheight'] = $_POST['thumbheight'];
     49  else
     50    $conf['Fotorama']['thumbheight'] = $old_conf['Fotorama']['thumbheight'];
    3751  if (isset($_POST['period']))
    3852    $conf['Fotorama']['period'] = $_POST['period'];
     53  else
     54    $conf['Fotorama']['period'] = $old_conf['Fotorama']['period'];
    3955
    4056  conf_update_param('Fotorama', serialize($conf['Fotorama']));
Note: See TracChangeset for help on using the changeset viewer.