From: Chuck Hagenbuch Date: Wed, 24 Nov 2010 03:41:49 +0000 (-0500) Subject: Fix scope X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=1a1fddfe4ae67345e76fbfd441c906945a2b7bbc;p=horde.git Fix scope --- 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);