Fixed buttons not displayed when in a custom block
Fixed buttons not displayed when in a custom block

I have not find the reason why it has been written this way, the `$publishing` variable seems unused. It might be a typo here since the first version.
damien-biasotto/croogo,delkyd/croogo,Wouter0100/croogo,xintesa/croogo,xintesa/croogo,xintesa/croogo,cvo-technologies/croogo,damien-biasotto/croogo,delkyd/croogo,cvo-technologies/croogo,rakeshtembhurne/croogo,rchavik/croogo,delkyd/croogo,rakeshtembhurne/croogo,rakeshtembhurne/croogo,Wouter0100/croogo,cvo-technologies/croogo,rchavik/croogo,Wouter0100/croogo