浏览代码

Use full path

Jaap Marcus 4 年之前
父节点
当前提交
5407d4e716
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      web/inc/main.php

+ 1 - 1
web/inc/main.php

@@ -4,7 +4,7 @@ use PHPMailer\PHPMailer\PHPMailer;
 use PHPMailer\PHPMailer\SMTP;
 use PHPMailer\PHPMailer\Exception;
 
-if(!file_exists('vendor/autoload.php')){
+if(!file_exists(dirname(__FILE__).'/vendor/autoload.php')){
     trigger_error('Unable able to load required libaries. Please run v-add-sys-phpmailer in command line');
     echo 'Unable able to load required libaries. Please run v-add-sys-phpmailer in command line';
     exit(1);