Added error message on incomplete install.

This commit is contained in:
Andrey Savchenko committed 2019-01-22 16:34:25 +02:00
1 parent 828d70cdd1
commit e1176b7f67
2 files changed
+5

No files matched your search

+1
View File
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
### Added ### Added
- WooCommerce events - WooCommerce events
- PHP version and OPcache status information - PHP version and OPcache status information
- error message on incomplete install
### Fixed ### Fixed
- headers error from new line in Server Timing - headers error from new line in Server Timing
+4
View File
@@ -16,6 +16,10 @@ if ( file_exists( __DIR__ . '/vendor/autoload.php' ) ) {
require __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 = new \Rarst\Laps\Plugin();
$laps->run(); $laps->run();