Skip to content

Commit

Permalink
Composer autoload conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
retlehs committed Apr 3, 2016
1 parent b19cbbf commit 508de7d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@
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;
}

0 comments on commit 508de7d

Please sign in to comment.