Skip to content

Commit

Permalink
Pass the database handle if we are using Metar weather driver.
Browse files Browse the repository at this point in the history
Most likely, Metar would never be used as the Horde-wide weather
provider, but provide this just in case.
  • Loading branch information
mrubinsk committed Aug 12, 2016
1 parent c9b4f53 commit 4dbe21d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions framework/Core/lib/Horde/Core/Factory/Weather.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ public function create(Horde_Injector $injector)
$params['apiVersion'] = $conf['weather']['params']['apiversion'];
}
break;
case 'Metar':
$params['db'] = $injector->getInstance('Horde_Db_Adapter');
break;
}
$class = $this->_getDriverName($driver, 'Horde_Service_Weather');

Expand Down

0 comments on commit 4dbe21d

Please sign in to comment.