Backend url generation fixed

This commit is contained in:
Carsten Götzinger 2018-02-15 09:33:14 +01:00
parent 3bd810e662
commit 3e63d90c19

View File

@ -63,8 +63,6 @@ class RateItBackendModule extends \BackendModule
public function __construct($objElement=array()) {
parent::__construct($objElement);
asdlkfj
$this->label = $GLOBALS['TL_CONFIG']['rating_type'] == 'hearts' ? $GLOBALS['TL_LANG']['rateit']['heart'] : $GLOBALS['TL_LANG']['rateit']['star'];
$this->labels = $GLOBALS['TL_CONFIG']['rating_type'] == 'hearts' ? $GLOBALS['TL_LANG']['rateit']['hearts'] : $GLOBALS['TL_LANG']['rateit']['stars'];
@ -537,7 +535,7 @@ class RateItBackendModule extends \BackendModule
*/
protected function createPageUrl($aPage, $aParams = null)
{
$url = \Environment::get('script') . '?do='.$aPage;
$url = 'contao?do='.$aPage;
if (is_array($aParams)) {
foreach ($aParams as $key => $val)
if ($val!='')