Index: trunk/extensions/SemanticInternalObjects/SemanticInternalObjects_body.php |
— | — | @@ -161,22 +161,11 @@ |
162 | 162 | foreach ( $internalObject->getPropertyValuePairs() as $propertyValuePair ) { |
163 | 163 | list( $property, $value ) = $propertyValuePair; |
164 | 164 | |
165 | | - // handling changed in SMW 1.5 |
166 | | - $realFunction = array( 'SMWSQLStore2', 'findPropertyTableID' ); |
167 | | - if ( is_callable( $realFunction ) ) { |
168 | | - $tableid = SMWSQLStore2::findPropertyTableID( $property ); |
169 | | - $isRelation = ( $tableid == 'smw_rels2' ); |
170 | | - $isAttribute = ( $tableid == 'smw_atts2' ); |
171 | | - $isText = ( $tableid == 'smw_text2' ); |
172 | | - // new with SMW 1.5.1 / SM 0.6 |
173 | | - $isCoords = ( $tableid == 'smw_coords' ); |
174 | | - } else { |
175 | | - $mode = SMWSQLStore2::getStorageMode( $property->getPropertyTypeID() ); |
176 | | - $isRelation = ( $mode == SMW_SQL2_RELS2 ); |
177 | | - $isAttribute = ( $mode == SMW_SQL2_ATTS2 ); |
178 | | - $isText = ( $mode == SMW_SQL2_TEXT2 ); |
179 | | - $isCoords = false; |
180 | | - } |
| 165 | + $tableid = SMWSQLStore2::findPropertyTableID( $property ); |
| 166 | + $isRelation = ( $tableid == 'smw_rels2' ); |
| 167 | + $isAttribute = ( $tableid == 'smw_atts2' ); |
| 168 | + $isText = ( $tableid == 'smw_text2' ); |
| 169 | + $isCoords = ( $tableid == 'smw_coords' ); |
181 | 170 | |
182 | 171 | if ( $isRelation ) { |
183 | 172 | $upRels2[] = array( |