Ignore:
Timestamp:
Apr 21, 2012, 12:56:51 PM (12 years ago)
Author:
plg
Message:

feature 2606: (multiple size config screen redesign) turn the "restore" button
in a "reset to default values" link in the "Multiple size" fieldset.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/configuration.php

    r14228 r14251  
    249249  load_conf_from_db();
    250250}
    251 elseif (isset($_POST['restore_settings']))
     251
     252// restore default derivatives settings
     253if ('sizes' == $page['section'] and isset($_GET['action']) and 'restore_settings' == $_GET['action'])
    252254{
    253255  ImageStdParams::set_and_save( ImageStdParams::get_default_sizes() );
    254256  pwg_query('DELETE FROM '.CONFIG_TABLE.' WHERE param = \'disabled_derivatives\'');
    255257  clear_derivative_cache();
     258
     259  array_push(
     260    $page['infos'],
     261    l10n('Your configuration settings are saved')
     262    );
    256263}
    257264
Note: See TracChangeset for help on using the changeset viewer.