From: Michael J. Rubinsky Date: Thu, 8 Jul 2010 18:13:33 +0000 (-0400) Subject: Global scope X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=93510a91b24963b05c9c834cdf6ef395f7137193;p=horde.git Global scope --- diff --git a/horde/lib/Block/metar.php b/horde/lib/Block/metar.php index 40cab0ab9..baadcdeae 100644 --- a/horde/lib/Block/metar.php +++ b/horde/lib/Block/metar.php @@ -46,7 +46,7 @@ class Horde_Block_Horde_metar extends Horde_Block { global $conf; // Get locations from the database. - $db = $injector->getInstance('Horde_Db_Pear')->getDb(); + $db = $GLOBALS['injector']->getInstance('Horde_Db_Pear')->getDb(); $result = $db->query('SELECT icao, name, country FROM metarAirports ORDER BY country'); if (is_a($result, 'PEAR_Error')) {