onDifferenceEngineBeforeDiffTable: Update comment

Bug: T336582
Follows-up: I251db11e8cb5b785744ee2c111d20a346937b78c
Change-Id: Ic1a6a3d1fe50aab163ce0fb17ae7379bff172adb
This commit is contained in:
TheresNoTime 2023-05-16 18:31:29 +01:00 committed by Samtar
parent f693822f64
commit d7262d8483

View file

@ -148,7 +148,8 @@ class Hooks implements DifferenceEngineBeforeDiffTableHook {
->makeConfig( 'visualeditor' );
$output = RequestContext::getMain()->getOutput();
// Return early if not viewing a diff of an allowed type.
// Return early if not viewing a diff of an allowed type or
// if the diff namespace is NS_SPECIAL (ref. T336582)
if ( !ApiVisualEditor::isAllowedContentType( $veConfig, $diff->getTitle()->getContentModel() )
|| $output->getActionName() !== 'view' || $diff->getTitle()->getNamespace() == NS_SPECIAL
) {