Skip to content

Commit

Permalink
Dev Override added for defaultController setting. Removed unneeded co…
Browse files Browse the repository at this point in the history
…nfig

from sample files.
  • Loading branch information
SamMousa committed Jan 9, 2014
1 parent 001a6cc commit 80ee8ad
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 45 deletions.
11 changes: 0 additions & 11 deletions application/config/config-sample-dblib.php
Expand Up @@ -22,18 +22,7 @@
|
*/
return array(
'basePath' => dirname(dirname(__FILE__)),
'runtimePath' => dirname(dirname(dirname(__FILE__))).DIRECTORY_SEPARATOR.'tmp'.DIRECTORY_SEPARATOR.'runtime',
'name' => 'LimeSurvey',
'defaultController' => 'survey',

'import' => array(
'application.core.*',
'application.models.*',
'application.controllers.*',
'application.modules.*',
),

'components' => array(
'db' => array(
'connectionString' => 'dblib:host=localhost;dbname=limesurvey',
Expand Down
11 changes: 0 additions & 11 deletions application/config/config-sample-mysql.php
Expand Up @@ -22,18 +22,7 @@
|
*/
return array(
'basePath' => dirname(dirname(__FILE__)),
'runtimePath' => dirname(dirname(dirname(__FILE__))).DIRECTORY_SEPARATOR.'tmp'.DIRECTORY_SEPARATOR.'runtime',
'name' => 'LimeSurvey',
'defaultController' => 'survey',

'import' => array(
'application.core.*',
'application.models.*',
'application.controllers.*',
'application.modules.*',
),

'components' => array(
'db' => array(
'connectionString' => 'mysql:host=localhost;port=3306;dbname=limesurvey',
Expand Down
11 changes: 0 additions & 11 deletions application/config/config-sample-pgsql.php
Expand Up @@ -22,18 +22,7 @@
|
*/
return array(
'basePath' => dirname(dirname(__FILE__)),
'runtimePath' => dirname(dirname(dirname(__FILE__))).DIRECTORY_SEPARATOR.'tmp'.DIRECTORY_SEPARATOR.'runtime',
'name' => 'LimeSurvey',
'defaultController' => 'survey',

'import' => array(
'application.core.*',
'application.models.*',
'application.controllers.*',
'application.modules.*',
),

'components' => array(
'db' => array(
'connectionString' => 'pgsql:host=localhost;port=5432;user=postgres;password=somepassword;dbname=limesurvey;',
Expand Down
11 changes: 0 additions & 11 deletions application/config/config-sample-sqlsrv.php
Expand Up @@ -22,18 +22,7 @@
|
*/
return array(
'basePath' => dirname(dirname(__FILE__)),
'runtimePath' => dirname(dirname(dirname(__FILE__))).DIRECTORY_SEPARATOR.'tmp'.DIRECTORY_SEPARATOR.'runtime',
'name' => 'LimeSurvey',
'defaultController' => 'survey',

'import' => array(
'application.core.*',
'application.models.*',
'application.controllers.*',
'application.modules.*',
),

'components' => array(
'db' => array(
'connectionString' => 'sqlsrv:Server=localhost;Database=limesurvey',
Expand Down
6 changes: 5 additions & 1 deletion application/config/internal.php
Expand Up @@ -65,6 +65,10 @@
$userConfig = require(dirname(__FILE__) . '/config.php');
}

return CMap::mergeArray($internalConfig, $userConfig);
$result = CMap::mergeArray($internalConfig, $userConfig);
/**
* Some workarounds for erroneous settings in user config.php.
*/
$result['defaultController'] = $internalConfig['defaultController'];
/* End of file internal.php */
/* Location: ./application/config/internal.php */

0 comments on commit 80ee8ad

Please sign in to comment.