Umstellung auf eigene Ajax-Verarbeitung über Route "rateit"
This commit is contained in:
parent
1dd2979664
commit
1ab4a1c6de
@ -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}
|
||||||
|
@ -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');
|
||||||
|
Loading…
Reference in New Issue
Block a user