Development

Changeset 7644

You must first sign up to be able to contribute.

Changeset 7644

Show
Ignore:
Timestamp:
02/27/08 23:46:20 (8 months ago)
Author:
fabien
Message:

fixed sfDatabaseSessionStorage extensibility (closes #2998)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.1/lib/storage/sfDatabaseSessionStorage.class.php

    r4890 r7644  
    9494  public function sessionOpen($path, $name) 
    9595  { 
    96     $databaseClass = str_replace('SessionStorage', 'Database', get_class($this)); 
    97  
    9896    // what database are we using? 
    9997    $database = $this->getParameter('database'); 
    100     if (!$database instanceof $databaseClass) 
    101     { 
    102       throw new sfDatabaseException(sprintf('You need to pass a "%s" to the "%s".', $databaseClass, get_class($this))); 
    103     } 
    10498 
    10599    // get the database resource 
     
    107101    if (is_null($this->db)) 
    108102    { 
    109       throw new sfDatabaseException(sprintf('%s connection doesn\'t exist. Unable to open session.', $databaseClass)); 
     103      throw new sfDatabaseException('Database connection doesn\'t exist. Unable to open session.'); 
    110104    } 
    111105