From: Brett Profitt Date: Mon, 5 Sep 2011 00:45:58 +0000 (-0700) Subject: Refs #3661. Merged lat/long metadata fixes to master. X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=b5899156dfba7aa51e14fba302219e73793fa6a2;p=lorea%2Felgg.git Refs #3661. Merged lat/long metadata fixes to master. --- diff --git a/engine/classes/ElggEntity.php b/engine/classes/ElggEntity.php index 6edc99dd4..7c8828a98 100644 --- a/engine/classes/ElggEntity.php +++ b/engine/classes/ElggEntity.php @@ -1432,11 +1432,7 @@ abstract class ElggEntity extends ElggData implements * @return true */ public function setLocation($location) { - $location = sanitise_string($location); - - $this->location = $location; - - return true; + return $this->location = $location; } /** @@ -1449,9 +1445,6 @@ abstract class ElggEntity extends ElggData implements * @todo Unimplemented */ public function setLatLong($lat, $long) { - $lat = sanitise_string($lat); - $long = sanitise_string($long); - $this->set('geo:lat', $lat); $this->set('geo:long', $long);