summaryrefslogtreecommitdiff
path: root/lib/helpers.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/helpers.php')
-rw-r--r--lib/helpers.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/helpers.php b/lib/helpers.php
index ad16e1b..eb8994c 100644
--- a/lib/helpers.php
+++ b/lib/helpers.php
@@ -1,8 +1,12 @@
<?php
-ORM::configure('mysql:host=' . Config::$dbHost . ';dbname=' . Config::$dbName);
-ORM::configure('username', Config::$dbUsername);
-ORM::configure('password', Config::$dbPassword);
+if(Config::$dbType == 'sqlite') {
+ ORM::configure('sqlite:' . Config::$dbFilePath);
+} else {
+ ORM::configure('mysql:host=' . Config::$dbHost . ';dbname=' . Config::$dbName);
+ ORM::configure('username', Config::$dbUsername);
+ ORM::configure('password', Config::$dbPassword);
+}
function render($page, $data) {
global $app;