jenkins-bot has submitted this change and it was merged. Change subject: In Special:Templates, fix the associated category to the template ......................................................................
In Special:Templates, fix the associated category to the template Special:Templates searches for the syntax [[(Category|$cat_ns_name):(.*)]], but $cat_ns_name was wrongly set the translation of Template instead of the translation of Category in the last rewrite of this part. Bug: T69020 Change-Id: Iec26e6801fd7012e327b3deaafcc9bcc5561f917 --- M specials/SF_Templates.php 1 file changed, 1 insertion(+), 1 deletion(-) Approvals: Yaron Koren: Looks good to me, approved jenkins-bot: Verified diff --git a/specials/SF_Templates.php b/specials/SF_Templates.php index 62f8b5f..bc389b8 100644 --- a/specials/SF_Templates.php +++ b/specials/SF_Templates.php @@ -72,7 +72,7 @@ global $wgContLang; $templateText = SFUtils::getPageText( $templateTitle ); - $cat_ns_name = $wgContLang->getNsText( NS_TEMPLATE ); + $cat_ns_name = $wgContLang->getNsText( NS_CATEGORY ); if ( preg_match_all( "/\[\[(Category|$cat_ns_name):([^\]]*)\]\]/", $templateText, $matches ) ) { // Get the last match - if there's more than one // category tag, there's a good chance that the last -- To view, visit https://gerrit.wikimedia.org/r/294122 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: Iec26e6801fd7012e327b3deaafcc9bcc5561f917 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/SemanticForms Gerrit-Branch: master Gerrit-Owner: Seb35 <seb35wikipe...@gmail.com> Gerrit-Reviewer: Seb35 <seb35wikipe...@gmail.com> Gerrit-Reviewer: Yaron Koren <yaro...@gmail.com> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits