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