From 1a1fddfe4ae67345e76fbfd441c906945a2b7bbc Mon Sep 17 00:00:00 2001 From: Chuck Hagenbuch Date: Tue, 23 Nov 2010 22:41:49 -0500 Subject: [PATCH] Fix scope --- ansel/lib/View/GalleryRenderer/GalleryLightbox.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansel/lib/View/GalleryRenderer/GalleryLightbox.php b/ansel/lib/View/GalleryRenderer/GalleryLightbox.php index 5e91c9d03..420ecf259 100644 --- a/ansel/lib/View/GalleryRenderer/GalleryLightbox.php +++ b/ansel/lib/View/GalleryRenderer/GalleryLightbox.php @@ -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); -- 2.11.0