mirror of
https://github.com/werkraum-media/abtest.git
synced 2024-12-26 18:46:10 +01:00
Bugfix: Only register hook if we are not in CLI mode to avoid fatal error in ApacheSolrForTypo3
* FrontendController must not be modified to initalize Solr index service (getInitializedIndexService)
This commit is contained in:
parent
9f0e6cd6c5
commit
2ceed7a419
1 changed files with 3 additions and 2 deletions
|
@ -1,5 +1,6 @@
|
|||
<?php
|
||||
|
||||
defined('TYPO3_MODE') or die();
|
||||
|
||||
\WerkraumMedia\ABTest\Hook\TypoScriptFrontendController::register();
|
||||
if (PHP_SAPI !== 'cli') {
|
||||
\WerkraumMedia\ABTest\Hook\TypoScriptFrontendController::register();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue