Fix an issue when plugin registry is not present usually in login page

This commit is contained in:
Hugo Loza
2011-02-28 22:42:13 +00:00
parent 1ad31383c7
commit 41f4934e45

View File

@@ -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 .= " <link rel='stylesheet' type='text/css' href='" . $cssFile->sCssFile . ".css' />\n";
}
}
return $script;
}