diff --git a/src/ContaoManagerPlugin.php b/src/ContaoManagerPlugin.php index fb7db62..e839f1b 100644 --- a/src/ContaoManagerPlugin.php +++ b/src/ContaoManagerPlugin.php @@ -6,6 +6,7 @@ use Contao\CoreBundle\ContaoCoreBundle; use Contao\ManagerPlugin\Bundle\Config\BundleConfig; use Contao\ManagerPlugin\Bundle\BundlePluginInterface; use Contao\ManagerPlugin\Bundle\Parser\ParserInterface; +use Contao\ManagerPlugin\Routing\RoutingPluginInterface; use Symfony\Component\Config\Loader\LoaderResolverInterface; use Symfony\Component\HttpKernel\KernelInterface; @@ -14,7 +15,7 @@ use Symfony\Component\HttpKernel\KernelInterface; * * @author Carsten Götzinger */ -class ContaoManagerPlugin implements BundlePluginInterface +class ContaoManagerPlugin implements BundlePluginInterface, RoutingPluginInterface { /** * {@inheritdoc} diff --git a/src/Resources/contao/classes/RateIt.php b/src/Resources/contao/classes/RateIt.php index fc28fdb..b662067 100644 --- a/src/Resources/contao/classes/RateIt.php +++ b/src/Resources/contao/classes/RateIt.php @@ -44,6 +44,16 @@ class RateIt extends \Frontend { public function __construct() { parent::__construct(); + // See #4099 + if (!defined('BE_USER_LOGGED_IN')) + { + define('BE_USER_LOGGED_IN', false); + } + if (!defined('FE_USER_LOGGED_IN')) + { + define('FE_USER_LOGGED_IN', false); + } + $this->rateItFrontend = new RateItFrontend(); $this->loadLanguageFile('default');