diff options
Diffstat (limited to 'public')
-rw-r--r-- | public/bootstrap.php | 4 | ||||
-rw-r--r-- | public/index.php | 2 |
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(); |