[ticket/12738] Inject config object into content_visibility class

PHPBB3-12738