Index: trunk/extensions/SemanticMediaWiki/includes/SMW_DataValueFactory.php |
— | — | @@ -288,7 +288,7 @@ |
289 | 289 | $id = array_search($label, SMWDataValueFactory::$m_typelabels); |
290 | 290 | if ($id !== false) { |
291 | 291 | return $id; |
292 | | - } elseif (array_key_exists($label, SMWDataValueFactory::$m_typealiases)) { |
| 292 | + } elseif ( ($useAlias) && (array_key_exists($label, SMWDataValueFactory::$m_typealiases)) ) { |
293 | 293 | return SMWDataValueFactory::$m_typealiases[$label]; |
294 | 294 | } else { |
295 | 295 | return str_replace(' ', '_', $label); |