Skip to content

Commit

Permalink
Fixed issue #7108: 'hostinfo' parameter in config.php not working
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Dec 22, 2012
1 parent b52311d commit 037d481
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions application/core/LSYii_Application.php
Expand Up @@ -78,7 +78,11 @@ public function __construct($config = null)
}
}

$config['components']['request']=array(
if (!isset($config['components']['request']))
{
$config['components']['request']=array();
}
$config['components']['request']=array_merge_recursive($config['components']['request'],array(
'class'=>'LSHttpRequest',
'noCsrfValidationRoutes'=>array(
// '^services/wsdl.*$' // Set here additional regex rules for routes not to be validate
Expand All @@ -88,7 +92,7 @@ public function __construct($config = null)
),
'enableCsrfValidation'=>false, // Enable to activate CSRF protection
'enableCookieValidation'=>false // Enable to activate cookie protection
);
));

parent::__construct($config);
// Load the default and environmental settings from different files into self.
Expand Down

0 comments on commit 037d481

Please sign in to comment.