Skip to content

Commit

Permalink
Check for autoloader
Browse files Browse the repository at this point in the history
  • Loading branch information
Luis Rodrigues committed Jul 26, 2015
1 parent d742339 commit 1484258
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion wp-cas-server.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@
die;
}

require_once dirname( __FILE__ ) . '/vendor/autoload.php';
if ( file_exists( dirname( __FILE__ ) . '/vendor/autoload.php' ) ) {
require_once dirname( __FILE__ ) . '/vendor/autoload.php';
}

$GLOBALS[ Cassava\Plugin::SLUG ] = new \Cassava\Plugin( new \Cassava\CAS\Server );
$GLOBALS[ Cassava\Plugin::SLUG ]->ready();

0 comments on commit 1484258

Please sign in to comment.