Development

Changeset 2041

You must first sign up to be able to contribute.

Changeset 2041

Show
Ignore:
Timestamp:
09/11/06 15:48:24 (2 years ago)
Author:
fabien
Message:

fixed host doesn't seem to be working in databases.yml (closes #855)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/database/sfPropelDatabase.class.php

    r1415 r2041  
    6666 
    6767      $this->setParameter('phptype',  $params['phptype']); 
    68       $this->setParameter('hostspec', $params['hostspec']); 
     68      $this->setParameter('hostspec', $params['hostspec'] ? $params['hostspec'] : ($params['host'] ? $params['host'] : null)); 
    6969      $this->setParameter('database', $params['database']); 
    7070      $this->setParameter('username', $params['username']); 
     
    7979        array( 
    8080          'phptype'  => $this->getParameter('phptype'), 
    81           'hostspec' => $this->getParameter('hostspec') ? $this->getParameter('hostspec') : ($this->getParameter('host') ? $this->getParameter('hostspec') : null), 
     81          'hostspec' => $this->getParameter('hostspec') ? $this->getParameter('hostspec') : ($this->getParameter('host') ? $this->getParameter('host') : null), 
    8282          'database' => $this->getParameter('database'), 
    8383          'username' => $this->getParameter('username'),