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:
Bill Marquette 2005-05-15 23:01:19 +00:00
parent 67f7b203af
commit 4e0d02b3aa

View File

@ -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;