diff --git a/composer.json b/composer.json index 0ec4da8..2608d67 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "numero2/contao-random-ce", "type": "contao-bundle", - "description": "Import news from dpa as news into Contao", + "description": "Provides a wrapper (like accordion) for content elements to show a different, random element on each reload of the page.", "license": "LGPL-3.0+", "authors": [{ "name": "numero2 - Agentur für digitales Marketing GbR", diff --git a/src/Controller/ContentElement/RandomCEStartController.php b/src/Controller/ContentElement/RandomCEStartController.php index b7698e3..71a61a2 100644 --- a/src/Controller/ContentElement/RandomCEStartController.php +++ b/src/Controller/ContentElement/RandomCEStartController.php @@ -9,6 +9,7 @@ * @copyright Copyright (c) 2023, numero2 - Agentur für digitales Marketing GbR */ + namespace numero2\RandomCEBundle\Controller\ContentElement; use Contao\ContentModel; diff --git a/src/EventListener/Hook/ContentElementListener.php b/src/EventListener/Hook/ContentElementListener.php index 74df645..1d08e78 100644 --- a/src/EventListener/Hook/ContentElementListener.php +++ b/src/EventListener/Hook/ContentElementListener.php @@ -40,7 +40,7 @@ public function __construct( RequestStack $requestStack, ScopeMatcher $scopeMatc /** - * Check if this content element should be visible this time + * Check if this content element should be visible on this request * * @param Contao\ContentModel $row * @param string $strBuffer