added a few more path constants.

This commit is contained in:
Taylor Otwell
2011-07-26 22:11:16 -05:00
parent d8cab0a7b6
commit 1cf4431659
4 changed files with 14 additions and 11 deletions

View File

@@ -54,7 +54,7 @@ class Connector {
*/
private static function connect_to_sqlite($config)
{
if (file_exists($path = APP_PATH.'storage/db/'.$config->database.'.sqlite'))
if (file_exists($path = DATABASE_PATH.$config->database.'.sqlite'))
{
return new \PDO('sqlite:'.$path, null, null, static::$options);
}