jenkins-bot has submitted this change and it was merged.
Change subject: Don't show the renaming guided tour when publishing to main
namespace
......................................................................
Don't show the renaming guided tour when publishing to main namespace
Bug: T87618
Change-Id: I0c3040061dff22dd9d786c2bcb56081524e729ab
---
M ContentTranslation.hooks.php
1 file changed, 8 insertions(+), 1 deletion(-)
Approvals:
Santhosh: Looks good to me, approved
jenkins-bot: Verified
diff --git a/ContentTranslation.hooks.php b/ContentTranslation.hooks.php
index 7bf97da..2852d59 100644
--- a/ContentTranslation.hooks.php
+++ b/ContentTranslation.hooks.php
@@ -66,7 +66,14 @@
$out->addModules( 'ext.cx.redlink' );
}
- if ( class_exists( 'GuidedTourHooks' ) ) {
+ // The current guided tours are only for the user namespace,
+ // so load the module only there.
+ // In the future there may be guided tours in other namespaces,
+ // and then this condition should be changed.
+ if (
+ class_exists( 'GuidedTourHooks' ) &&
+ $title->inNamespace( NS_USER )
+ ) {
$out->addModules( 'ext.guidedTour' );
}
}
--
To view, visit https://gerrit.wikimedia.org/r/186890
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I0c3040061dff22dd9d786c2bcb56081524e729ab
Gerrit-PatchSet: 3
Gerrit-Project: mediawiki/extensions/ContentTranslation
Gerrit-Branch: master
Gerrit-Owner: Amire80 <[email protected]>
Gerrit-Reviewer: Nikerabbit <[email protected]>
Gerrit-Reviewer: Santhosh <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits