Project

General

Profile

« Previous | Next » 

Revision 4d52a9b9

Added by Jim Pingle over 15 years ago

Tag all config write cases with the username.

View differences:

etc/inc/config.lib.inc
469 469

  
470 470
	/* Log the running script so it's not entirely unlogged what changed */
471 471
	if ($desc == "Unknown")
472
		$desc = "{$_SESSION['Username']}: {$_SERVER['SCRIPT_NAME']} made unknown change";
472
		$desc = "{$_SERVER['SCRIPT_NAME']} made unknown change";
473 473

  
474
	$config['revision']['description'] = $desc;
474
	$config['revision']['description'] = "{$_SESSION['Username']}: " . $desc;
475 475
	$config['revision']['username'] = $_SESSION["Username"];
476 476

  
477 477
	$lockkey = lock('config');

Also available in: Unified diff