jenkins-bot has submitted this change and it was merged.
Change subject: Disable edit section links for translation pages automatically
......................................................................
Disable edit section links for translation pages automatically
Bug: 40713
Change-Id: I4d82bd81fc736107aebb023be569cf39052615fd
---
M tag/PageTranslationHooks.php
1 file changed, 3 insertions(+), 0 deletions(-)
Approvals:
Siebrand: Looks good to me, approved
jenkins-bot: Verified
diff --git a/tag/PageTranslationHooks.php b/tag/PageTranslationHooks.php
index 84626e6..5593ce3 100644
--- a/tag/PageTranslationHooks.php
+++ b/tag/PageTranslationHooks.php
@@ -50,6 +50,9 @@
$parser->getOutput()->setDisplayTitle( $name );
}
+ // Disable edit section links
+ $parser->getOptions()->setEditSection( false );
+
return true;
}
--
To view, visit https://gerrit.wikimedia.org/r/65572
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I4d82bd81fc736107aebb023be569cf39052615fd
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Translate
Gerrit-Branch: master
Gerrit-Owner: Nikerabbit <[email protected]>
Gerrit-Reviewer: Siebrand <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits