diff options
author | Igor Scheller <igor.scheller@igorshp.de> | 2017-01-02 02:19:17 +0100 |
---|---|---|
committer | Igor Scheller <igor.scheller@igorshp.de> | 2017-01-02 02:19:17 +0100 |
commit | 94b52504145ed5c889093421167306aa7a45d385 (patch) | |
tree | bc68f9149f0f59623455eb815131254665c92b70 /includes | |
parent | bc91daedca5646bbc2786bd5c24152b4f723436e (diff) |
Added composer with parsedown requirement
Diffstat (limited to 'includes')
-rw-r--r-- | includes/engelsystem_provider.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/includes/engelsystem_provider.php b/includes/engelsystem_provider.php index 595af9f9..c2b979d8 100644 --- a/includes/engelsystem_provider.php +++ b/includes/engelsystem_provider.php @@ -2,6 +2,11 @@ /** * This file includes all needed functions, connects to the db etc. */ +if(!is_readable(__DIR__ . '/../vendor/autoload.php')){ + die('Please run composer.phar install'); +} +require __DIR__ . '/../vendor/autoload.php'; + require_once realpath(__DIR__ . '/../includes/mysqli_provider.php'); require_once realpath(__DIR__ . '/../includes/sys_auth.php'); @@ -91,8 +96,6 @@ require_once realpath(__DIR__ . '/../includes/pages/user_questions.php'); require_once realpath(__DIR__ . '/../includes/pages/user_settings.php'); require_once realpath(__DIR__ . '/../includes/pages/user_shifts.php'); -require_once realpath(__DIR__ . '/../vendor/parsedown/Parsedown.php'); - session_start(); gettext_init(); |