r22961 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r22960‎ | r22961 | r22962 >
Date:16:30, 13 June 2007
Author:mkroetzsch
Status:old
Tags:
Comment:
typo
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/includes/SMW_DataValueFactory.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/includes/SMW_DataValueFactory.php
@@ -20,7 +20,7 @@
2121 /**
2222 * Cache for type labels, indexed by attribute name (both without namespace prefix).
2323 */
24 - static private $m_attributelabels = array('testnary' => 'String;Integer;Wikipage;Date'); ///DEBUG
 24+ static private $m_attributelabels = array('Testnary' => 'String;Integer;Wikipage;Date'); ///DEBUG
2525
2626 /**
2727 * Was code for handling n-ary properties already included?
@@ -49,7 +49,6 @@
5050 return new SMWOldDataValue(new SMWErrorTypeHandler(wfMsgForContent('smw_manytypes')));
5151 }
5252 }
53 -
5453 return SMWDataValueFactory::newTypedValue(SMWDataValueFactory::$m_attributelabels[$attstring], $value);
5554 }
5655
@@ -93,7 +92,7 @@
9493 return new $dv[2]($dv[3]);
9594 } else {
9695 // check for n-ary types
97 - $types = explode($typestring, ';');
 96+ $types = explode(';', $typestring);
9897 if (count($types)>1) {
9998 if (SMWDataValueFactory::$m_naryincluded == false) {
10099 global $smwgIP;

Status & tagging log