summaryrefslogtreecommitdiff
path: root/db/update.php
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2014-09-08 13:56:22 +0200
committermsquare <msquare@notrademark.de>2014-09-08 13:56:22 +0200
commit213d4580d9df5e1da6af1b728c7402099a6358a4 (patch)
tree1d8510005f91eb9ac9c8fd3e1b33f328cb186016 /db/update.php
parent64a341e084c5c8c8a0dc63a25d80429156d6a705 (diff)
parent0cbac227d9608b76b750d2faee16fd8be5d06935 (diff)
Merge pull request #1 from mortzu/master
Kleinere Codeanpassungen
Diffstat (limited to 'db/update.php')
-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);