[3825] branches/tags_as_terms/system/schema/sqlite/connection.php: Branch: tags_as_terms.

0 views
Skip to first unread message

svn-N...@habariproject.org

unread,
Nov 24, 2009, 10:34:46 PM11/24/09
to habar...@googlegroups.com
Revision
3825
Author
rickc
Date
2009-11-25 03:34:42 +0000 (Wed, 25 Nov 2009)

Log Message

Branch: tags_as_terms. Merge r3824

Modified Paths

Diff

Modified: branches/tags_as_terms/system/schema/sqlite/connection.php (3824 => 3825)


--- branches/tags_as_terms/system/schema/sqlite/connection.php	2009-11-24 14:37:44 UTC (rev 3824)
+++ branches/tags_as_terms/system/schema/sqlite/connection.php	2009-11-25 03:34:42 UTC (rev 3825)
@@ -65,8 +65,8 @@
 			}
 			$connect_string = implode( ':', array( $type, $file ) );
 		}
-		if (!is_writable($file)) {
-			die(_t('Database file must be writable.'));
+		if ( file_exists( $file ) && !is_writable( $file ) ) {
+			die( _t( 'Database file must be writable.' ) );
 		}
 		$conn = parent::connect( $connect_string, $db_user, $db_pass );
 		$this->exec( 'PRAGMA synchronous = OFF' );
Reply all
Reply to author
Forward
0 new messages