fix BackenModule

This commit is contained in:
Carsten Götzinger 2018-02-15 08:15:13 +01:00
parent 78a97b83c4
commit 3bd810e662
2 changed files with 7 additions and 2 deletions

View File

@ -30,7 +30,7 @@
namespace cgoIT\rateit;
class rateitBackendModule extends \BackendModule
class RateItBackendModule extends \BackendModule
{
protected $strTemplate;
protected $actions = array();
@ -63,6 +63,8 @@ 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'];

View File

@ -43,7 +43,10 @@ $GLOBALS['TL_HOOKS']['parseTemplate'][] = array('cgoIT\rateit\RateItArt
*/
array_insert($GLOBALS['BE_MOD']['content'], -1,
array('rateit' => array (
'callback' => 'cgoIT\rateit\RateItBackendModule'
'callback' => 'cgoIT\rateit\RateItBackendModule',
'icon' => RateItBackend::image('icon'),
'stylesheet' => RateItBackend::css('backend'),
'javascript' => RateItBackend::js('RateItBackend')
)
));