L Lawrence Well-known member Feb 11, 2014 #1 When there is no View, and $rendererStates is empty, $content is not appended within the returned HTML.
When there is no View, and $rendererStates is empty, $content is not appended within the returned HTML.
Mike XenForo developer Staff member Feb 12, 2014 #2 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>'; }
L Lawrence Well-known member Feb 12, 2014 #3 Mike said: 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>'; } Click to expand... Makes sense, thanks Mike.
Mike said: 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>'; } Click to expand... Makes sense, thanks Mike.