Skip to content
Snippets Groups Projects
Commit 78553ccd authored by Georgi Mateev's avatar Georgi Mateev
Browse files

[BUGFIX] Fixed missing key message

parent 77fe3d15
No related branches found
No related tags found
1 merge request!19Release 5.0.0
This commit is part of merge request !19. Comments created here will be created in the context of that merge request.
......@@ -53,7 +53,6 @@ use TYPO3\CMS\Core\Messaging\AbstractMessage;
use TYPO3\CMS\Core\Messaging\FlashMessage;
use TYPO3\CMS\Core\Site\SiteFinder;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Core\Utility\VersionNumberUtility;
use TYPO3\CMS\Extbase\Mvc\Controller\ActionController;
use TYPO3\CMS\Extbase\Mvc\Exception\StopActionException;
use TYPO3\CMS\Extbase\Mvc\View\ViewInterface;
......@@ -612,25 +611,25 @@ class RouteController extends ActionController {
LocalizationUtility::translate('backend.licenseKey.isInDemoMode.header', 'sg_routes'),
AbstractMessage::INFO
);
} elseif (!$hasValidLicense) {
} elseif ($keyState === DemoModeService::STATE_LICENSE_NOT_SET) {
$description = LocalizationUtility::translate(
'backend.licenseKey.invalid.descriptionTYPO3-9', 'sg_routes'
'backend.licenseKey.notSet.descriptionTYPO3-9', 'sg_routes'
);
$this->addFlashMessage(
$description,
LocalizationUtility::translate('backend.licenseKey.invalid.header', 'sg_routes'),
AbstractMessage::ERROR
LocalizationUtility::translate('backend.licenseKey.notSet.header', 'sg_routes'),
AbstractMessage::WARNING
);
} elseif ($keyState === DemoModeService::STATE_LICENSE_NOT_SET) {
} elseif (!$hasValidLicense) {
$description = LocalizationUtility::translate(
'backend.licenseKey.notSet.descriptionTYPO3-9', 'sg_routes'
'backend.licenseKey.invalid.descriptionTYPO3-9', 'sg_routes'
);
$this->addFlashMessage(
$description,
LocalizationUtility::translate('backend.licenseKey.notSet.header', 'sg_routes'),
AbstractMessage::WARNING
LocalizationUtility::translate('backend.licenseKey.invalid.header', 'sg_routes'),
AbstractMessage::ERROR
);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment