Skip to content
This repository has been archived by the owner on Aug 26, 2024. It is now read-only.

Commit

Permalink
Merge pull request #56 from damianbz321/master
Browse files Browse the repository at this point in the history
fix - vqmod
  • Loading branch information
Pieter Poorthuis authored Mar 23, 2018
2 parents 4400174 + 3f2706f commit 7678928
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/upload/system/library/bitpay.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,18 @@ public function __construct($registry) {

// Load up the BitPay library
$autoloader = __DIR__ . '/Bitpay/Autoloader.php';
if (true === file_exists($autoloader) &&
true === is_readable($autoloader))
$autoloader_vqmod = dirname(dirname(__DIR__)).'/system/library/Bitpay/Autoloader.php';

if (true === file_exists($autoloader) && true === is_readable($autoloader))
{
require_once $autoloader;
\Bitpay\Autoloader::register();
}
elseif(true === file_exists($autoloader_vqmod) && true === is_readable($autoloader_vqmod))
{
require_once $autoloader_vqmod;
\Bitpay\Autoloader::register();

} else {
// OpenCart uses a custom error handler for reporting instead of using exceptions
// Which is why an error is triggered instead of an exception being thrown
Expand Down

0 comments on commit 7678928

Please sign in to comment.