Backend url generation fixed
This commit is contained in:
parent
3bd810e662
commit
3e63d90c19
@ -63,8 +63,6 @@ class RateItBackendModule extends \BackendModule
|
|||||||
public function __construct($objElement=array()) {
|
public function __construct($objElement=array()) {
|
||||||
parent::__construct($objElement);
|
parent::__construct($objElement);
|
||||||
|
|
||||||
asdlkfj
|
|
||||||
|
|
||||||
$this->label = $GLOBALS['TL_CONFIG']['rating_type'] == 'hearts' ? $GLOBALS['TL_LANG']['rateit']['heart'] : $GLOBALS['TL_LANG']['rateit']['star'];
|
$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'];
|
$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)
|
protected function createPageUrl($aPage, $aParams = null)
|
||||||
{
|
{
|
||||||
$url = \Environment::get('script') . '?do='.$aPage;
|
$url = 'contao?do='.$aPage;
|
||||||
if (is_array($aParams)) {
|
if (is_array($aParams)) {
|
||||||
foreach ($aParams as $key => $val)
|
foreach ($aParams as $key => $val)
|
||||||
if ($val!='')
|
if ($val!='')
|
||||||
|
Loading…
Reference in New Issue
Block a user