fix BackenModule
This commit is contained in:
parent
78a97b83c4
commit
3bd810e662
@ -30,7 +30,7 @@
|
|||||||
|
|
||||||
namespace cgoIT\rateit;
|
namespace cgoIT\rateit;
|
||||||
|
|
||||||
class rateitBackendModule extends \BackendModule
|
class RateItBackendModule extends \BackendModule
|
||||||
{
|
{
|
||||||
protected $strTemplate;
|
protected $strTemplate;
|
||||||
protected $actions = array();
|
protected $actions = array();
|
||||||
@ -63,6 +63,8 @@ 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'];
|
||||||
|
|
||||||
|
@ -43,7 +43,10 @@ $GLOBALS['TL_HOOKS']['parseTemplate'][] = array('cgoIT\rateit\RateItArt
|
|||||||
*/
|
*/
|
||||||
array_insert($GLOBALS['BE_MOD']['content'], -1,
|
array_insert($GLOBALS['BE_MOD']['content'], -1,
|
||||||
array('rateit' => array (
|
array('rateit' => array (
|
||||||
'callback' => 'cgoIT\rateit\RateItBackendModule'
|
'callback' => 'cgoIT\rateit\RateItBackendModule',
|
||||||
|
'icon' => RateItBackend::image('icon'),
|
||||||
|
'stylesheet' => RateItBackend::css('backend'),
|
||||||
|
'javascript' => RateItBackend::js('RateItBackend')
|
||||||
)
|
)
|
||||||
));
|
));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user