Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 61670a1

Browse files
authoredMay 12, 2018
[UPDATE] Print error if vendor libs are missing
1 parent 1f8a332 commit 61670a1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

‎include/autoloader.inc.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22
(SECURITY == "*)WT#&YHfd" && SECHASH_CHECK) ? die("public/index.php -> Set a new SECURITY value to continue") : 0;
33
$defflip = (!cfip()) ? exit(header('HTTP/1.1 401 Unauthorized')) : 1;
44

5-
require_once(INCLUDE_DIR . '/../vendor/autoload.php');
5+
if (file_exists(INCLUDE_DIR . '/../vendor/autoload.php')) {
6+
require_once(INCLUDE_DIR . '/../vendor/autoload.php');
7+
} else {
8+
die("Unable to load vendor libraries, please run `php composer.phar install` in root folder.");
9+
}
610

711
// Default classes
812
require_once(INCLUDE_DIR . '/lib/KLogger.php');

0 commit comments

Comments
 (0)
Please sign in to comment.