Skip to content

Commit

Permalink
Take out the breaks.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Barth committed Feb 17, 2010
1 parent a510816 commit 7defb0d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
1 change: 0 additions & 1 deletion FeedsODKFetcher.inc
Expand Up @@ -42,7 +42,6 @@ class FeedsODKFetcher extends FeedsFetcher {
* @todo: more input validation.
*/
public function fetch(FeedsSource $source) {
return new FeedsODKBatch($_FILES);
if (isset($_FILES['xml_submission_file']['tmp_name'])) {
return new FeedsODKBatch($_FILES);
}
Expand Down
9 changes: 0 additions & 9 deletions FeedsODKParser.inc
Expand Up @@ -17,15 +17,6 @@ class FeedsODKParser extends FeedsParser {
* Parse the submitted XML.
*/
protected function parseXML($raw) {
$raw = <<<EOF
<?xml version='1.0' ?>
<geotagger id="geo_tagger">
<DeviceId>A0000015B6FF70</DeviceId>
<Image>1266373610389.jpg</Image>
<Location>38.91677205 -77.03591701666667 45.6 12.0</Location>
<Description>DS office</Description>
</geotagger>
EOF;
$xml = @ new SimpleXMLElement($raw);
list($lat, $lon, $alt, $acc) = explode(' ', (string) @current($xml->xpath('/geotagger/Location')));
return array(
Expand Down

0 comments on commit 7defb0d

Please sign in to comment.