Permalink
Browse files

Small fixes to the new Wunderground plugin

  • Loading branch information...
1 parent e4b1163 commit 6d1df3bd935383f6e439b8833a6e6c73715a80fa @elazar elazar committed Apr 13, 2012
Showing with 3 additions and 9 deletions.
  1. +3 −9 Phergie/Plugin/Wunderground.php
@@ -14,9 +14,9 @@
* @category Phergie
* @package Phergie_Plugin_Wunderground
* @author Phergie Development Team <team@phergie.org>
- * @copyright 2008-2011 Phergie Development Team (http://phergie.org)
+ * @copyright 2008-2012 Phergie Development Team (http://phergie.org)
* @license http://phergie.org/license New BSD License
- * @link http://pear.phergie.org/package/Phergie_Plugin_Weather
+ * @link http://pear.phergie.org/package/Phergie_Plugin_Wunderground
*/
/**
@@ -35,7 +35,6 @@
* @uses Phergie_Plugin_Cache pear.phergie.org
* @uses Phergie_Plugin_Command pear.phergie.org
* @uses Phergie_Plugin_Http pear.phergie.org
- * @uses Phergie_Plugin_Temperature pear.phergie.org
* @uses extension SimpleXML
*/
@@ -66,7 +65,6 @@ public function onLoad()
}
}
-
/**
* Makes call to wunderground's api for conditions at a particular location
*
@@ -124,10 +122,6 @@ public function parseWeatherInfo($response)
{
$xml = $response->getContent();
-// if (!$xml) {
-// throw new Phergie_Exception("Error parsing XML content returned.");
-// }
-
if (isset($xml->results)) {
$this->setBogusLocation(true);
throw new Phergie_Exception("That location is too ambiguous. Please be more specific.");
@@ -167,4 +161,4 @@ public function setBogusLocation($bogusLocation)
$this->bogusLocation = $bogusLocation;
return $this;
}
-}
+}

0 comments on commit 6d1df3b

Please sign in to comment.