Changeset 7644
- Timestamp:
- 02/27/08 23:46:20 (8 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.1/lib/storage/sfDatabaseSessionStorage.class.php
r4890 r7644 94 94 public function sessionOpen($path, $name) 95 95 { 96 $databaseClass = str_replace('SessionStorage', 'Database', get_class($this));97 98 96 // what database are we using? 99 97 $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 }104 98 105 99 // get the database resource … … 107 101 if (is_null($this->db)) 108 102 { 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.'); 110 104 } 111 105