Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.

Commit

Permalink
fix(init.php): fixed path detection for init.php (cron environment)
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiSchwarz-cnic committed Jun 2, 2020
1 parent 5b49f6e commit 2ffd5a8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ispapibackorder.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@
if (file_exists($init_path)) {
require_once($init_path);
} else {
exit("cannot find init.php");
// case of whmcs sync cron
if (file_exists($root_path . DIRECTORY_SEPARATOR . "bootstrap.php")) {
require_once $root_path . DIRECTORY_SEPARATOR . "bootstrap.php";
} else {
exit("cannot find init.php");
}
}

use WHMCS\Database\Capsule;
Expand Down

0 comments on commit 2ffd5a8

Please sign in to comment.