roundcube/roundcubemail — pull request #183 by corbosman (2014-05-07 09:44:21+00:00)
Title: dont render plugin blocks if none selected

I noticed that even when I dont select my plugin in the preferences section, it was rendering the blocks. I could not stop it from doing that, because the current code expects there to be content in the section blocks even if your plugin is not showing.

This PR prevents that. It should not change anything for existing plugins, but now you can modify your plugin to check $args['current'] instead of $args['section'] and only render when your plugin is selected.