getMessage(); } if (is_object($object)) { $data = $object->getDisplayData(); $values = $data['data']; /* $fileidquery and $files comment by mwu: this needs to be cached as it slows down loading time significantly */ if (!empty($values['name']['value'][$_SESSION['account_language']])) { $objectname = $content_vars['values']['name']['value'][$_SESSION['account_language']]; } else if (!empty($values['name']['value']['en'])) { $objectname = $values['name']['value']['en']; } else { $objectname = current($values['name']['value']); } // init of delete reasons $reasons = array(); if ($object->objecttype == "structure") { // object is a building $objecttypetext = t("Building"); $reasons[] = 'The object is a duplicate.'; $reasons[] = 'The object does not make sense.'; $reasons[] = 'The object was created by accident.'; $reasons[] = 'The object cannot be identified.'; $reasons[] = 'Most of the object data is wrong.'; $latlngarray = explode(" ", $values['pinpoint']['value']); $_REQUEST['currentobject_lat'] = $latlngarray[1]; $_REQUEST['currentobject_lng'] = $latlngarray[0]; $error = false; } elseif ($object->objecttype == "company") { // object is a company $objecttypetext = t("Company"); $reasons[] = 'The company is a duplicate.'; $reasons[] = 'The company does not make sense.'; $reasons[] = 'The company was created by accident.'; $reasons[] = 'The company cannot be identified.'; $reasons[] = 'Most of the company data is wrong.'; $reasons[] = 'The company never existed.'; $error = false; } elseif ($object->objecttype == "region") { // object is a region TODO $objecttypetext = t("Region"); $reasons[] = 'The region is a duplicate.'; $reasons[] = 'The region does not make sense.'; $reasons[] = 'The region was created by accident.'; $reasons[] = 'The region cannot be identified.'; $reasons[] = 'Most of the region data is wrong.'; $reasons[] = 'The region never existed.'; $error = false; } elseif ($object->objecttype == "street") { // object is a street $objecttypetext = t("Street"); $reasons[] = 'The street is a duplicate.'; $reasons[] = 'The street does not make sense.'; $reasons[] = 'The street was created by accident.'; $reasons[] = 'The street cannot be identified.'; $reasons[] = 'Most of the street data is wrong.'; $reasons[] = 'The street never existed.'; $error = false; } else { // failover -- should never happen $error = true; } } else { // failover -- should never happen; building already deleted but popup still called $error = true; } ?>
objecttype == "structure"): ?> $objectid, 'lat' => $_REQUEST['currentobject_lat'], 'lng' => $_REQUEST['currentobject_lng']));?> (#)
(#)
An error occurred. The object does not exist.