Seb35 has uploaded a new change for review. https://gerrit.wikimedia.org/r/294122
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(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SemanticForms refs/changes/22/294122/1 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: newchange Gerrit-Change-Id: Iec26e6801fd7012e327b3deaafcc9bcc5561f917 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/SemanticForms Gerrit-Branch: master Gerrit-Owner: Seb35 <seb35wikipe...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits