Revision 919a43a7
Added by Doktor Notor over 8 years ago
src/usr/local/www/diag_backup.php | ||
---|---|---|
273 | 273 |
restore_rrddata(); |
274 | 274 |
unset($config['rrddata']); |
275 | 275 |
unlink_if_exists("{$g['tmp_path']}/config.cache"); |
276 |
write_config(); |
|
276 |
write_config(sprintf(gettext("Unset RRD data from configuration after restoring %s configuration area"), $_POST['restorearea']));
|
|
277 | 277 |
convert_config(); |
278 | 278 |
} |
279 | 279 |
filter_configure(); |
... | ... | |
308 | 308 |
restore_rrddata(); |
309 | 309 |
unset($config['rrddata']); |
310 | 310 |
unlink_if_exists("{$g['tmp_path']}/config.cache"); |
311 |
write_config(); |
|
311 |
write_config(gettext("Unset RRD data from configuration after restoring full configuration"));
|
|
312 | 312 |
convert_config(); |
313 | 313 |
} |
314 | 314 |
if ($m0n0wall_upgrade == true) { |
... | ... | |
368 | 368 |
} |
369 | 369 |
} |
370 | 370 |
$config['diag']['ipv6nat'] = true; |
371 |
write_config(); |
|
371 |
write_config(gettext("Imported m0n0wall configuration"));
|
|
372 | 372 |
convert_config(); |
373 | 373 |
$savemsg = gettext("The m0n0wall configuration has been restored and upgraded to pfSense."); |
374 | 374 |
mark_subsystem_dirty("restore"); |
Also available in: Unified diff
Add reasons to write_config() calls