Added error message on incomplete install.
This commit is contained in:
1 parent
828d70cdd1
commit
e1176b7f67
2 files changed
+5
No files matched your search
@@ -16,6 +16,10 @@ if ( file_exists( __DIR__ . '/vendor/autoload.php' ) ) {
|
||||
require __DIR__ . '/vendor/autoload.php';
|
||||
}
|
||||
|
||||
if ( ! class_exists( '\Rarst\Laps\Plugin' ) ) {
|
||||
trigger_error( 'Laps not fully installed! Please install with Composer or download full release archive.', E_USER_ERROR );
|
||||
}
|
||||
|
||||
$laps = new \Rarst\Laps\Plugin();
|
||||
|
||||
$laps->run();
|
||||
Reference in new issue
Block a user