From 41f4934e456265720c5d13f6416e4300aa332993 Mon Sep 17 00:00:00 2001 From: Hugo Loza Date: Mon, 28 Feb 2011 22:42:13 +0000 Subject: [PATCH] Fix an issue when plugin registry is not present usually in login page --- gulliver/system/class.headPublisher.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gulliver/system/class.headPublisher.php b/gulliver/system/class.headPublisher.php index 4bd0a9dce..8eaa4164f 100644 --- a/gulliver/system/class.headPublisher.php +++ b/gulliver/system/class.headPublisher.php @@ -314,11 +314,13 @@ class headPublisher { */ // Load external/plugin css // NOTE is necesary to move this to decorator server + if(class_exists('PMPluginRegistry')){ $oPluginRegistry = & PMPluginRegistry::getSingleton (); $registeredCss=$oPluginRegistry->getRegisteredCss(); foreach($registeredCss as $cssFile){ $script .= " \n"; } + } return $script; }