Index: trunk/extensions/SemanticMediaWiki/includes/SMW_DataValueFactory.php |
— | — | @@ -20,7 +20,7 @@ |
21 | 21 | /** |
22 | 22 | * Cache for type labels, indexed by attribute name (both without namespace prefix). |
23 | 23 | */ |
24 | | - static private $m_attributelabels = array('testnary' => 'String;Integer;Wikipage;Date'); ///DEBUG |
| 24 | + static private $m_attributelabels = array('Testnary' => 'String;Integer;Wikipage;Date'); ///DEBUG |
25 | 25 | |
26 | 26 | /** |
27 | 27 | * Was code for handling n-ary properties already included? |
— | — | @@ -49,7 +49,6 @@ |
50 | 50 | return new SMWOldDataValue(new SMWErrorTypeHandler(wfMsgForContent('smw_manytypes'))); |
51 | 51 | } |
52 | 52 | } |
53 | | - |
54 | 53 | return SMWDataValueFactory::newTypedValue(SMWDataValueFactory::$m_attributelabels[$attstring], $value); |
55 | 54 | } |
56 | 55 | |
— | — | @@ -93,7 +92,7 @@ |
94 | 93 | return new $dv[2]($dv[3]); |
95 | 94 | } else { |
96 | 95 | // check for n-ary types |
97 | | - $types = explode($typestring, ';'); |
| 96 | + $types = explode(';', $typestring); |
98 | 97 | if (count($types)>1) { |
99 | 98 | if (SMWDataValueFactory::$m_naryincluded == false) { |
100 | 99 | global $smwgIP; |