diff --git a/ilab-publish-tool.php b/ilab-publish-tool.php index 2247c92..ad9d4f6 100644 --- a/ilab-publish-tool.php +++ b/ilab-publish-tool.php @@ -8,12 +8,13 @@ Author URI: http://interfacelab.com */ - -require_once('vendor/autoload.php'); - define('ILAB_PUBLISH_TOOLS_DIR',dirname(__FILE__)); define('ILAB_PUBLISH_VIEW_DIR',ILAB_PUBLISH_TOOLS_DIR.'/views'); +if (file_exists(ILAB_PUBLISH_TOOLS_DIR.'/vendor/autoload.php')) { + require_once('vendor/autoload.php'); +} + require_once('helpers/ilab-publish-view.php'); require_once('classes/ilab-publish-tool-plugin.php');