Don't echo out line, send it to the system logs

This commit is contained in:
Scott Ullrich 2006-05-05 03:41:49 +00:00
parent 37db27bbdd
commit 5e2a2a1e5c

View File

@ -68,7 +68,7 @@ if(file_exists("/cf/conf/config.xml")) {
$config_contents = file_get_contents("/cf/conf/config.xml");
if(stristr($config_contents, "m0n0wall") == true) {
/* user has just upgraded to m0n0wall, replace root xml tags */
echo "Upgrading m0n0wall configuration to pfSense... ";
log_error("Upgrading m0n0wall configuration to pfSense... ");
$config_contents = str_replace("m0n0wall","pfsense", $config_contents);
if (!config_validate($config_contents))
log_error("ERROR! Could not convert m0n0wall -> pfsense in config.xml");