Global scope
authorMichael J. Rubinsky <mrubinsk@horde.org>
Thu, 8 Jul 2010 18:13:33 +0000 (14:13 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Thu, 8 Jul 2010 18:13:33 +0000 (14:13 -0400)
horde/lib/Block/metar.php

index 40cab0a..baadcde 100644 (file)
@@ -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')) {