As designed Spoiler content when there is no View

This is intentional as we don't want to leak the content unexpectedly (in a place that might not be able to hide it). You can see that in the code:
Code:
        if (!empty($rendererStates['spoilerTextWithFallback']))
        {
            return '<div>' . $content . '</div>';
        }
        else
        {
            $spoilerText = new XenForo_Phrase('spoiler');
            return '<div><b>' . ($title ? ($spoilerText . ': ' . $title) : $spoilerText) . '</b></div>';
        }
 
This is intentional as we don't want to leak the content unexpectedly (in a place that might not be able to hide it). You can see that in the code:
Code:
        if (!empty($rendererStates['spoilerTextWithFallback']))
        {
            return '<div>' . $content . '</div>';
        }
        else
        {
            $spoilerText = new XenForo_Phrase('spoiler');
            return '<div><b>' . ($title ? ($spoilerText . ': ' . $title) : $spoilerText) . '</b></div>';
        }

Makes sense, thanks Mike.
 
Back
Top Bottom