mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Log what script was running when write_config() was called so we aren't
leaving user completely in the blind as to what the change corresponds to
This commit is contained in:
parent
67f7b203af
commit
4e0d02b3aa
@ -514,6 +514,10 @@ function write_config($desc="Unknown") {
|
||||
if (time() > mktime(0, 0, 0, 9, 1, 2004)) /* make sure the clock settings are plausible */
|
||||
$changetime = time();
|
||||
|
||||
/* Log the running script so it's not entirely unlogged what changed */
|
||||
if ($desc == "Unknown")
|
||||
$desc = "Unknown change in {$_SERVER['SCRIPT_NAME']}";
|
||||
|
||||
$config['revision']['description'] = $desc;
|
||||
$config['revision']['time'] = $changetime;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user