Index: trunk/extensions/SemanticMediaWiki/includes/SMW_DataValue.php |
— | — | @@ -193,7 +193,7 @@ |
194 | 194 | /** |
195 | 195 | * Return the unit in which the returned value is to be interpreted. |
196 | 196 | * This string is a plain UTF-8 string without wiki or html markup. |
197 | | - * Returns FALSE if no unit is given for the value. |
| 197 | + * Returns the empty string if no unit is given for the value. |
198 | 198 | */ |
199 | 199 | abstract public function getUnit(); |
200 | 200 | |
Index: trunk/extensions/SemanticMediaWiki/includes/SMW_DV_Error.php |
— | — | @@ -64,7 +64,7 @@ |
65 | 65 | } |
66 | 66 | |
67 | 67 | public function getUnit() { |
68 | | - return array('STDUNIT'=>false, 'ALLUNITS'=>array()); |
| 68 | + return ''; // empty unit |
69 | 69 | } |
70 | 70 | |
71 | 71 | public function getError() { |
Index: trunk/extensions/SemanticMediaWiki/includes/SMW_DV_URI.php |
— | — | @@ -105,7 +105,7 @@ |
106 | 106 | } |
107 | 107 | |
108 | 108 | public function getUnit() { |
109 | | - return array('STDUNIT'=>false, 'ALLUNITS'=>array()); |
| 109 | + return ''; // empty unit |
110 | 110 | } |
111 | 111 | |
112 | 112 | public function getError() { |
Index: trunk/extensions/SemanticMediaWiki/includes/SMW_DV_Types.php |
— | — | @@ -90,7 +90,7 @@ |
91 | 91 | } |
92 | 92 | |
93 | 93 | public function getUnit() { |
94 | | - return false; |
| 94 | + return ''; // empty unit |
95 | 95 | } |
96 | 96 | |
97 | 97 | public function getError() { |
Index: trunk/extensions/SemanticMediaWiki/includes/SMW_DV_String.php |
— | — | @@ -72,7 +72,7 @@ |
73 | 73 | } |
74 | 74 | |
75 | 75 | public function getUnit() { |
76 | | - return array('STDUNIT'=>false, 'ALLUNITS'=>array()); |
| 76 | + return ''; // empty unit |
77 | 77 | } |
78 | 78 | |
79 | 79 | public function getError() { |
Index: trunk/extensions/SemanticMediaWiki/includes/SMW_DV_NAry.php |
— | — | @@ -170,7 +170,7 @@ |
171 | 171 | } |
172 | 172 | |
173 | 173 | public function getUnit() { |
174 | | - return false; |
| 174 | + return ''; // empty unit |
175 | 175 | } |
176 | 176 | |
177 | 177 | public function getError() { |