Project

General

Profile

« Previous | Next » 

Revision 3756fd86

Added by Chris Buechler over 9 years ago

Fix up config setting for killing states on gateway failure. Enable this option where gw_down_kill_states is set. Flip setting accordingly during config upgrade to not use confusing 'kill_states' tag to not kill states. Ticket #5815

View differences:

src/etc/inc/upgrade_config.inc
3330 3330
}
3331 3331

  
3332 3332
function upgrade_097_to_098() {
3333
	global $config, $g;
3334
	/* Disable kill_states by default */
3335
	$config['system']['kill_states'] = true;
3333
	// no longer used (used to set kill_states)
3334
	return;
3336 3335
}
3337 3336

  
3338 3337
function upgrade_098_to_099() {
......
4326 4325
	}
4327 4326
}
4328 4327

  
4328
function upgrade_138_to_139() {
4329
	global $config;
4330

  
4331
	// clean up state killing on gateway failure. having kill_states set used to mean it was disabled
4332
	// now set gw_down_kill_states if enabled. 
4333
	if (!isset($config['system']['kill_states'])) {
4334
		$config['system']['gw_down_kill_states'] = true;
4335
	} else {
4336
		unset($config['system']['kill_states']);
4337
	}
4338
}
4339

  
4329 4340
?>

Also available in: Unified diff