Skip to content

Commit

Permalink
Fixed issue: XAMPP package not properly installing the database
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Jul 30, 2014
1 parent 9a94a06 commit 760af50
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions application/commands/InstallCommand.php
Expand Up @@ -130,10 +130,12 @@ function getDBConnectionStringProperty($sProperty, $connectionString = null)

protected function createDatabase()
{
App()->configure(array('components'=>array('db'=>array('autoConnect'=>false)))) ;
$this->connection=App()->db;
App()->configure(array('components'=>array('db'=>array('autoConnect'=>true)))) ;
$connectionString = $this->connection->connectionString;
$this->connection->connectionString = preg_replace('/dbname=([^;]*)/', '', $connectionString);
try
{
try {
$this->connection->active=true;
}
catch(Exception $e){
Expand Down

0 comments on commit 760af50

Please sign in to comment.