Yaron Koren has submitted this change and it was merged.

Change subject: "Has default form" replaced with #default_form in generated 
categories
......................................................................


"Has default form" replaced with #default_form in generated categories

Change-Id: Idc38c4e576a9713ae5297f731c59c0cc904d6164
---
M specials/SF_CreateCategory.php
1 file changed, 1 insertion(+), 4 deletions(-)

Approvals:
  Yaron Koren: Checked; Looks good to me, approved



diff --git a/specials/SF_CreateCategory.php b/specials/SF_CreateCategory.php
index 5180894..88afc8c 100644
--- a/specials/SF_CreateCategory.php
+++ b/specials/SF_CreateCategory.php
@@ -25,10 +25,7 @@
                if ( $default_form === '' ) {
                        $text = wfMessage( 'sf_category_desc', $category_name 
)->inContentLanguage()->text();
                } else {
-                       global $sfgContLang;
-                       $specprops = $sfgContLang->getPropertyLabels();
-                       $form_tag = "[[" . $specprops[SF_SP_HAS_DEFAULT_FORM] . 
"::$default_form]]";
-                       $text = wfMessage( 'sf_category_hasdefaultform', 
$form_tag )->inContentLanguage()->text();
+                       $text = "{{#default_form:$default_form}}";
                }
                if ( $parent_category !== '' ) {
                        global $wgContLang;

-- 
To view, visit https://gerrit.wikimedia.org/r/174045
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Idc38c4e576a9713ae5297f731c59c0cc904d6164
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SemanticForms
Gerrit-Branch: master
Gerrit-Owner: Yaron Koren <[email protected]>
Gerrit-Reviewer: Yaron Koren <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to