diff options
author | Camil Staps | 2016-08-01 11:30:19 +0200 |
---|---|---|
committer | Camil Staps | 2016-08-01 11:30:19 +0200 |
commit | 8ee4336d778b2bdc1b8ba522d9251a4f664fe664 (patch) | |
tree | d704f32ee80088ba639ab51e5011932f9d45c747 /conf.php | |
parent | Braintree status history (diff) |
Require paths
Diffstat (limited to 'conf.php')
-rw-r--r-- | conf.php | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -33,10 +33,10 @@ ini_set('display_errors', 0); set_include_path(dirname(__FILE__) . PATH_SEPARATOR . get_include_path()); -require_once('conf.private.php'); +require_once(__DIR__ . '/conf.private.php'); spl_autoload_register(function ($pClass) { - $path = dirname(__FILE__) . "/classes/$pClass.php"; + $path = __DIR__ . "/classes/$pClass.php"; if (file_exists($path)) { require_once($path); } @@ -52,14 +52,12 @@ try { } if (BRAINTREE_ENABLED) { - require_once('modules/braintree/lib/Braintree.php'); + require_once(__DIR__ . '/modules/braintree/lib/Braintree.php'); Braintree_Configuration::environment(BRAINTREE_ENVIRONMENT); Braintree_Configuration::merchantId(BRAINTREE_MERCHANT); Braintree_Configuration::publicKey(BRAINTREE_KEY_PUBLIC); Braintree_Configuration::privateKey(BRAINTREE_KEY_PRIVATE); - - require_once('modules/PHPMailer/PHPMailerAutoload.php'); } -require_once('classes/Calculatable.php'); // Some definitions that are required +require_once(__DIR__ . '/modules/PHPMailer/PHPMailerAutoload.php'); |