From d8e20990d0cdd067e82b0790fad658f085de12aa Mon Sep 17 00:00:00 2001 From: Bryce Adams Date: Fri, 23 Sep 2016 11:25:48 +1000 Subject: [PATCH] Fix check for composer files --- wc-cyclone.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wc-cyclone.php b/wc-cyclone.php index 51ceefb..0bdf37c 100644 --- a/wc-cyclone.php +++ b/wc-cyclone.php @@ -10,7 +10,7 @@ add_action( 'plugins_loaded', function() { // Check `composer install` has been ran - if ( file_exists( 'vendor' ) ) { + if ( file_exists( dirname( __FILE__ ) . '/vendor' ) ) { // Composer dependencies require_once( 'vendor/autoload.php' );