r26242 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r26241‎ | r26242 | r26243 >
Date:19:41, 29 September 2007
Author:mkroetzsch
Status:old
Tags:
Comment:
Respect $useAlias parameter
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/includes/SMW_DataValueFactory.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/includes/SMW_DataValueFactory.php
@@ -288,7 +288,7 @@
289289 $id = array_search($label, SMWDataValueFactory::$m_typelabels);
290290 if ($id !== false) {
291291 return $id;
292 - } elseif (array_key_exists($label, SMWDataValueFactory::$m_typealiases)) {
 292+ } elseif ( ($useAlias) && (array_key_exists($label, SMWDataValueFactory::$m_typealiases)) ) {
293293 return SMWDataValueFactory::$m_typealiases[$label];
294294 } else {
295295 return str_replace(' ', '_', $label);

Status & tagging log