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
@@ -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
|
||||||
|
|||||||
@@ -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();
|
||||||
Reference in new issue
Block a user