summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorMoritz Kaspar Rudert (mortzu) <me@mortzu.de>2014-09-08 08:38:08 +0200
committerMoritz Kaspar Rudert (mortzu) <me@mortzu.de>2014-09-08 08:38:08 +0200
commit27b82236115df5db560e7015248574575441a551 (patch)
tree5241530d84c75068863b875d7712fbea7f81e16b /db
parentda49eeda6e719d7d9449fcb4cfaed2464100221c (diff)
removed bootstrap.php
Diffstat (limited to 'db')
-rw-r--r--db/update.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/db/update.php b/db/update.php
index 992ce715..ad72ec05 100644
--- a/db/update.php
+++ b/db/update.php
@@ -1,9 +1,9 @@
<?php
-require_once (dirname(__FILE__) . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'public' . DIRECTORY_SEPARATOR . 'bootstrap.php');
-require_once ('includes/mysql_provider.php');
-require_once('config/config.default.php');
-if(file_exists('config/config.php'))
- require_once ('config/config.php');
+
+require_once realpath(__DIR__ . '/../includes/mysql_provider.php');
+require_once realpath(__DIR__ . '/../config/config.default.php');
+if(file_exists(realpath(__DIR__ . '/../config/config.php')))
+ require_once realpath(__DIR__ . '/../config/config.php');
sql_connect($config['host'], $config['user'], $config['pw'], $config['db']);
error_reporting(E_ALL | E_NOTICE);