Umstellung auf eigene Ajax-Verarbeitung über Route "rateit"

This commit is contained in:
Carsten Götzinger 2018-02-15 06:16:05 +01:00
parent 1dd2979664
commit 1ab4a1c6de
2 changed files with 12 additions and 1 deletions

View File

@ -6,6 +6,7 @@ use Contao\CoreBundle\ContaoCoreBundle;
use Contao\ManagerPlugin\Bundle\Config\BundleConfig; use Contao\ManagerPlugin\Bundle\Config\BundleConfig;
use Contao\ManagerPlugin\Bundle\BundlePluginInterface; use Contao\ManagerPlugin\Bundle\BundlePluginInterface;
use Contao\ManagerPlugin\Bundle\Parser\ParserInterface; use Contao\ManagerPlugin\Bundle\Parser\ParserInterface;
use Contao\ManagerPlugin\Routing\RoutingPluginInterface;
use Symfony\Component\Config\Loader\LoaderResolverInterface; use Symfony\Component\Config\Loader\LoaderResolverInterface;
use Symfony\Component\HttpKernel\KernelInterface; use Symfony\Component\HttpKernel\KernelInterface;
@ -14,7 +15,7 @@ use Symfony\Component\HttpKernel\KernelInterface;
* *
* @author Carsten Götzinger * @author Carsten Götzinger
*/ */
class ContaoManagerPlugin implements BundlePluginInterface class ContaoManagerPlugin implements BundlePluginInterface, RoutingPluginInterface
{ {
/** /**
* {@inheritdoc} * {@inheritdoc}

View File

@ -44,6 +44,16 @@ class RateIt extends \Frontend {
public function __construct() { public function __construct() {
parent::__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->rateItFrontend = new RateItFrontend();
$this->loadLanguageFile('default'); $this->loadLanguageFile('default');