Commit 909f2b13 authored by Franco Fichtner's avatar Franco Fichtner

config: style issues

parent 661445dd
...@@ -32,19 +32,19 @@ ...@@ -32,19 +32,19 @@
openlog('opnsense', LOG_ODELAY, LOG_USER); openlog('opnsense', LOG_ODELAY, LOG_USER);
register_shutdown_function('closelog'); register_shutdown_function('closelog');
global $g; /* XXX make this a getter function for traceability */ global $g; /* XXX make this a getter function for traceability */
$g = array( $g = array(
"factory_shipped_username" => "root", 'factory_shipped_username' => 'root',
"factory_shipped_password" => "opnsense", 'factory_shipped_password' => 'opnsense',
"dhcpd_chroot_path" => "/var/dhcpd", 'dhcpd_chroot_path' => '/var/dhcpd',
"unbound_chroot_path" => "/var/unbound", 'unbound_chroot_path' => '/var/unbound',
"product_name" => "OPNsense", 'product_name' => 'OPNsense',
"product_website" => "https://opnsense.org/", 'product_website' => 'https://opnsense.org/',
"product_email" => "project@opnsense.org", 'product_email' => 'project@opnsense.org',
"product_copyright_owner" => "Deciso B.V.", 'product_copyright_owner' => 'Deciso B.V.',
"product_copyright_years" => "2014-2016", 'product_copyright_years' => '2014-2016',
"product_copyright_url" => "https://www.deciso.com/", 'product_copyright_url' => 'https://www.deciso.com/',
); );
require_once("xmlparse.inc"); require_once("xmlparse.inc");
...@@ -140,7 +140,7 @@ function convert_config($verbose = false) ...@@ -140,7 +140,7 @@ function convert_config($verbose = false)
$migration_function(); $migration_function();
} }
$config['version'] = sprintf('%.1f', $next / 10); $config['version'] = sprintf('%.1f', $next / 10);
} }
if ($prev_version != $config['version']) { if ($prev_version != $config['version']) {
write_config(sprintf('Upgraded config version level from %s to %s', $prev_version, $config['version'])); write_config(sprintf('Upgraded config version level from %s to %s', $prev_version, $config['version']));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment