aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authorBrett Profitt <brett.profitt@gmail.com>2011-09-04 17:45:58 -0700
committerBrett Profitt <brett.profitt@gmail.com>2011-09-04 17:45:58 -0700
commitb5899156dfba7aa51e14fba302219e73793fa6a2 (patch)
tree29e6b406af444e6bfd43b8b5efdd3e8f52884963 /engine
parent9f3c651ccd3f0f43a9d8d61cff4b71e3e29069d7 (diff)
downloadelgg-b5899156dfba7aa51e14fba302219e73793fa6a2.tar.gz
elgg-b5899156dfba7aa51e14fba302219e73793fa6a2.tar.bz2
Refs #3661. Merged lat/long metadata fixes to master.
Diffstat (limited to 'engine')
-rw-r--r--engine/classes/ElggEntity.php9
1 files changed, 1 insertions, 8 deletions
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);