From 00fcaf2be9dbdb9de5ae474754eaf60770c71739 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Fri, 17 Jun 2011 11:51:53 -0700 Subject: [PATCH] Improve comments in DB\Connector. --- system/db/connector.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/system/db/connector.php b/system/db/connector.php index 249bc48b..602ec96e 100644 --- a/system/db/connector.php +++ b/system/db/connector.php @@ -29,14 +29,14 @@ public static function connect($config) { // ----------------------------------------------------- // Check the application/db directory first. + // + // If the database doesn't exist there, maybe the full + // path was specified as the database name? // ----------------------------------------------------- if (file_exists($path = APP_PATH.'db/'.$config->database.'.sqlite')) { return new \PDO('sqlite:'.$path, null, null, static::$options); } - // ----------------------------------------------------- - // Is the database name the full path? - // ----------------------------------------------------- elseif (file_exists($config->database)) { return new \PDO('sqlite:'.$config->database, null, null, static::$options);