summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorPhilip Häusler <msquare@notrademark.de>2014-03-09 13:12:46 +0100
committerPhilip Häusler <msquare@notrademark.de>2014-03-09 13:12:46 +0100
commit98f355cd86828ccb8a24f24ab06c29d53bff530c (patch)
tree7fa647c06f260ffcb8a7c8189fb4ed8d02c88b18 /public
parent893bb5a9cf365c831e75fafc83dffdbced09a466 (diff)
added angeltype description
Diffstat (limited to 'public')
-rw-r--r--public/bootstrap.php4
-rw-r--r--public/index.php2
2 files changed, 4 insertions, 2 deletions
diff --git a/public/bootstrap.php b/public/bootstrap.php
index 1bc47923..2b8e6aba 100644
--- a/public/bootstrap.php
+++ b/public/bootstrap.php
@@ -1,10 +1,10 @@
<?php
// path and include settings
-$rootpath = str_replace(DIRECTORY_SEPARATOR . 'bootstrap.php', '', __FILE__);
+$rootpath = __DIR__ . DIRECTORY_SEPARATOR . '..';
define('ROOTPATH', $rootpath);
$includePath = ini_get('include_path');
-$includePath .= PATH_SEPARATOR . ROOTPATH . DIRECTORY_SEPARATOR . '..';
+$includePath .= PATH_SEPARATOR . ROOTPATH;
ini_set('include_path', $includePath);
?>
diff --git a/public/index.php b/public/index.php
index 7b9b9ac9..dc58fa06 100644
--- a/public/index.php
+++ b/public/index.php
@@ -58,6 +58,8 @@ require_once ('includes/pages/user_settings.php');
require_once ('includes/pages/user_shifts.php');
require_once ('includes/pages/user_wakeup.php');
+require_once ('vendor/parsedown-0.9.0/Parsedown.php');
+
session_start();
gettext_init();