Skip to content

Commit

Permalink
Bug: 14527 Disable Metar block if Horde_Service_Weather not present.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Dec 2, 2016
1 parent 9af4d22 commit 4e3d657
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions horde/lib/Block/Metar.php
Expand Up @@ -27,6 +27,10 @@ public function __construct($app, $params = array())

parent::__construct($app, $params);
$this->_name = _("Metar Weather");
if (!class_exists('Horde_Service_Weather_Metar')) {
$this->enabled = false;
return;
}
$params = array(
'cache' => $injector->getInstance('Horde_Cache'),
'cache_lifetime' => $conf['weather']['params']['lifetime'],
Expand Down

0 comments on commit 4e3d657

Please sign in to comment.