psi-4ward / stylepicker4ward

Contao Extensions: Let redakteuers easily select a css-class from a predefined list.
http://de.contaowiki.org/Stylepicker4ward
5 stars 7 forks source link

Disable hook in the frontend #2

Closed aschempp closed 12 years ago

aschempp commented 12 years ago

Currently if loadDataContainer is executed in the frontend, the style picker will load and inject it's values. To me, this is totally unnecessary. I suggest to exclude the frontend.

if (TL_MODE == 'BE')
{
    $GLOBALS['TL_HOOKS']['loadDataContainer'] ...
}
psi-4ward commented 12 years ago

fixed