Skip to content

Commit ad460d1

Browse files
committed
Include vendor folder
1 parent c3dda58 commit ad460d1

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

web/api/index.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
<?php
22
use function Hestiacp\quoteshellarg\quoteshellarg;
3+
4+
try {
5+
require_once './inc/vendor/autoload.php';
6+
} catch (Throwable $ex) {
7+
$errstr = 'Unable able to load required libraries. Please run v-add-sys-phpmailer in command line. Error: ' . $ex->getMessage();
8+
trigger_error($errstr);
9+
echo $errstr;
10+
exit(1);
11+
}
12+
313
//die("Error: Disabled");
414
define('HESTIA_DIR_BIN', '/usr/local/hestia/bin/');
515
define('HESTIA_CMD', '/usr/bin/sudo /usr/local/hestia/bin/');

0 commit comments

Comments
 (0)