Changeset 2823
- Timestamp:
- 11/19/08 20:09:31 (7 weeks ago)
- Files:
-
- 1 modified
-
trunk/htdocs/system/schema/sqlite/connection.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/htdocs/system/schema/sqlite/connection.php
r2809 r2823 57 57 { 58 58 list( $type, $file )= explode( ':', $connect_string, 2 ); 59 if( $file == basename( $file ) ) { 60 if( file_exists( HABARI_PATH . '/' . $file ) ) { 61 $file = HABARI_PATH . '/' . $file; 62 } 63 else { 64 $file = HABARI_PATH . '/' . Site::get_path( 'user', TRUE ) . $file; 65 } 66 $connect_string = implode( ':', array( $type, $file ) ); 67 } 59 68 return parent::connect( $connect_string, $db_user, $db_pass ); 60 69 }
