r60200 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r60199‎ | r60200 | r60201 >
Date:04:59, 18 December 2009
Author:yaron
Status:deferred
Tags:
Comment:
Removed support for SMW <1.4
Modified paths:
  • /trunk/extensions/SemanticForms/specials/SF_CreateCategory.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/specials/SF_CreateCategory.php
@@ -31,15 +31,7 @@
3232 } else {
3333 global $sfgContLang;
3434 $specprops = $sfgContLang->getPropertyLabels();
35 - // a simpler call is possible in SMW 1.4 and higher
36 - if (class_exists('SMWPropertyValue')) {
37 - $form_tag = "[[" . $specprops[SF_SP_HAS_DEFAULT_FORM] . "::$default_form]]";
38 - } else {
39 - $namespace_labels = $sfgContLang->getNamespaces();
40 - $form_label = $namespace_labels[SF_NS_FORM];
41 - $form_tag = "[[" . $specprops[SF_SP_HAS_DEFAULT_FORM] .
42 - "::$form_label:$default_form|$default_form]]";
43 - }
 35+ $form_tag = "[[" . $specprops[SF_SP_HAS_DEFAULT_FORM] . "::$default_form]]";
4436 $text = wfMsgForContent('sf_category_hasdefaultform', $form_tag);
4537 }
4638 if ($parent_category != '') {

Status & tagging log