Instead of adding a default port in the form, set one based on the default_db_ports var in manageheader.php

This commit is contained in:
Miles Lott 2003-12-22 02:57:52 +00:00
parent cb6c130046
commit 53352e87eb

View File

@ -41,6 +41,11 @@
{
$GLOBALS['header_template']->set_var(strtoupper($x),$y);
}
/* If the admin didn't select a db_port, set to the default */
if(!$dom['db_port'])
{
$GLOBALS['header_template']->set_var('DB_PORT',$GLOBALS['default_db_ports'][$dom['db_type']]);
}
$GLOBALS['header_template']->parse('domains','domain',True);
}