#1 2019-08-09 13:31:11

JohnB
Member
2019-08-02
16

Database synchronisation to NOT perform a simulation by default

If like me you are heartily sick of having to disable the 'perform simulation by default' box each time you want to synchronize your database, the secret is to remove 'checked="checked"' from line 218 of

_data/templates_c/p6jhns^b0bb837473df202aec6adfa9e35b2aa569319a6e_0.file.site_update.tpl.php

to give
<ul><li><label><input type="checkbox" name="simulate" value="1"> <?php echo l10n('only perform a simulation (no change in database will be made)');?>

This dry-run functionality should be the exception, not the rule

Offline

 

#2 2019-08-09 18:55:49

erAck
Only trying to help
2015-09-06
2236

Re: Database synchronisation to NOT perform a simulation by default

That's a cached template and different for everyone and will be overwritten when the cache is invalidated.

The source is in admin/themes/default/template/site_update.tpl line 93 (which again when modified will get overwritten by the next Piwigo update).


Running Piwigo at https://erack.net/gallery/

Offline

 

#3 2020-10-03 02:26:40

Rust
Member
2020-01-24
28

Re: Database synchronisation to NOT perform a simulation by default

Would be pretty useful to rework this template to provide a fixed selection of options.

Offline

 

Board footer

Powered by FluxBB