Fix scope
authorChuck Hagenbuch <chuck@horde.org>
Wed, 24 Nov 2010 03:41:49 +0000 (22:41 -0500)
committerChuck Hagenbuch <chuck@horde.org>
Wed, 24 Nov 2010 03:41:49 +0000 (22:41 -0500)
ansel/lib/View/GalleryRenderer/GalleryLightbox.php

index 5e91c9d..420ecf2 100644 (file)
@@ -135,7 +135,7 @@ class Ansel_View_GalleryRenderer_GalleryLightbox extends Ansel_View_GalleryRende
         }
         /* Output js/css here if we are calling via the api */
         if ($this->view->api) {
-            $injector->getInstance('Horde_Themes_Css')->addThemeStylesheet('lightbox.css');
+            $GLOBALS['injector']->getInstance('Horde_Themes_Css')->addThemeStylesheet('lightbox.css');
             Horde::includeStylesheetFiles(array('nobase' => true));
             $includes = $GLOBALS['injector']->createInstance('Horde_Script_Files');
             $includes->add('accesskeys.js', 'horde', true, true);