mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-27 15:50:29 +00:00
onDifferenceEngineBeforeDiffTable: Update comment
Bug: T336582 Follows-up: I251db11e8cb5b785744ee2c111d20a346937b78c Change-Id: Ic1a6a3d1fe50aab163ce0fb17ae7379bff172adb
This commit is contained in:
parent
f693822f64
commit
d7262d8483
|
@ -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
|
||||
) {
|
||||
|
|
Loading…
Reference in a new issue