mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
enabled domainnames with . in the name
kneschke.de becomes kneschke_de as variable name
This commit is contained in:
parent
9452e2f19b
commit
65d2177084
@ -22,6 +22,9 @@
|
||||
*/
|
||||
function generate_header()
|
||||
{
|
||||
// PHP will automatically replace any dots in incoming
|
||||
// variable names with underscores.
|
||||
|
||||
$GLOBALS['header_template']->set_file(array('header' => 'header.inc.php.template'));
|
||||
$GLOBALS['header_template']->set_block('header','domain','domain');
|
||||
$var = Array();
|
||||
@ -35,7 +38,8 @@
|
||||
{
|
||||
continue;
|
||||
}
|
||||
$dom = get_var('setting_'.$k,Array('POST'));
|
||||
$variableName = str_replace('.','_',$k);
|
||||
$dom = get_var('setting_'.$variableName,Array('POST'));
|
||||
$GLOBALS['header_template']->set_var('DB_DOMAIN',$v);
|
||||
while(list($x,$y) = @each($dom))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user