diff --git a/functions.php b/functions.php index 6d43a4c..c5d787f 100644 --- a/functions.php +++ b/functions.php @@ -49,6 +49,8 @@ foreach ($sage_includes as $file) { unset($file, $filepath); /** - * Require composer autoloader + * Require Composer autoloader if installed on it's own */ -require_once __DIR__ . '/vendor/autoload.php'; +if (file_exists($composer = __DIR__ . '/vendor/autoload.php')) { + require_once $composer; +}