Plugin Directory

Changeset 1731562


Ignore:
Timestamp:
09/18/2017 11:25:03 AM (9 years ago)
Author:
mychoice2pay
Message:

Fixed require autoload

File:
1 edited

Legend:

Unmodified
Added
Removed
  • woo-gateway-mc2p/trunk/wc_gateway_mc2p.php

    r1731546 r1731562  
    6969$autoloader_param = __DIR__ . '/lib/MC2P/MC2PClient.php';
    7070// Load up the MC2P library
    71 if (true === file_exists($autoloader_param) &&
    72     true === is_readable($autoloader_param))
    73 {
     71try {
    7472    require_once $autoloader_param;
    75 } else {
     73} catch (\Exception $e) {
    7674    throw new \Exception('The MC2P payment plugin was not installed correctly or the files are corrupt. Please reinstall the plugin. If this message persists after a reinstall, contact hola@mychoice2pay.com with this message.');
    7775}
Note: See TracChangeset for help on using the changeset viewer.