r99267 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r99266‎ | r99267 | r99268 >
Date:21:35, 7 October 2011
Author:yaron
Status:ok
Tags:
Comment:
Slight change: moved $datatype_labels setting further down the page
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/includes/SMW_PageSchemas.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/includes/SMW_PageSchemas.php
@@ -89,7 +89,6 @@
9090 function getFieldHTML( $field, &$text_extensions ) {
9191 global $smwgContLang;
9292
93 - $datatype_labels = $smwgContLang->getDatatypeLabels();
9493 $prop_array = array();
9594 $hasExistingValues = false;
9695 if ( !is_null( $field ) ) {
@@ -112,6 +111,7 @@
113112 $propType = null;
114113 }
115114 $select_body = "";
 115+ $datatype_labels = $smwgContLang->getDatatypeLabels();
116116 foreach ( $datatype_labels as $label ) {
117117 $optionAttrs = array();
118118 if ( $label == $propType) {

Status & tagging log