Backend url generation fixed
This commit is contained in:
		| @@ -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!='') | ||||
|   | ||||
		Reference in New Issue
	
	Block a user