r26215 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r26214‎ | r26215 | r26216 >
Date:17:42, 28 September 2007
Author:yaron
Status:old
Tags:
Comment:
Replaced direct access of SMW member variable, removed unneeded newline
in generated template
Modified paths:
  • /trunk/extensions/SemanticForms/includes/SF_TemplateField.inc (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/includes/SF_TemplateField.inc
@@ -52,7 +52,7 @@
5353 if ($row = $db->fetchObject($res)) {
5454 $this->field_type = $row->value_string;
5555 // set possible values if it's an enumeration
56 - if ($this->field_type == $smwgContLang->smwDatatypeLabels['smw_enum']) {
 56+ if ($this->field_type == $smwgContLang->getDatatypeLabel('smw_enum')) {
5757 $conditions = "subject_namespace = " . SMW_NS_ATTRIBUTE .
5858 " AND subject_title = '$semantic_field_db_str' AND property_id = " .
5959 SMW_SP_POSSIBLE_VALUE;
@@ -85,7 +85,6 @@
8686 $text .= wfMsgForContent('sf_template_docufooter') . "\n";
8787 $text .=<<<END
8888 </noinclude>
89 -
9089 <includeonly>
9190
9291 END;

Status & tagging log