]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Refs #3661. Merged lat/long metadata fixes to master.
authorBrett Profitt <brett.profitt@gmail.com>
Mon, 5 Sep 2011 00:45:58 +0000 (17:45 -0700)
committerBrett Profitt <brett.profitt@gmail.com>
Mon, 5 Sep 2011 00:45:58 +0000 (17:45 -0700)
engine/classes/ElggEntity.php

index 6edc99dd41af7144b358028e2689d8ae2c20c6c4..7c8828a98e6ce35445c3e439625711a2a2af4db1 100644 (file)
@@ -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);