Fix an issue when plugin registry is not present usually in login page
This commit is contained in:
@@ -314,11 +314,13 @@ class headPublisher {
|
|||||||
*/
|
*/
|
||||||
// Load external/plugin css
|
// Load external/plugin css
|
||||||
// NOTE is necesary to move this to decorator server
|
// NOTE is necesary to move this to decorator server
|
||||||
|
if(class_exists('PMPluginRegistry')){
|
||||||
$oPluginRegistry = & PMPluginRegistry::getSingleton ();
|
$oPluginRegistry = & PMPluginRegistry::getSingleton ();
|
||||||
$registeredCss=$oPluginRegistry->getRegisteredCss();
|
$registeredCss=$oPluginRegistry->getRegisteredCss();
|
||||||
foreach($registeredCss as $cssFile){
|
foreach($registeredCss as $cssFile){
|
||||||
$script .= " <link rel='stylesheet' type='text/css' href='" . $cssFile->sCssFile . ".css' />\n";
|
$script .= " <link rel='stylesheet' type='text/css' href='" . $cssFile->sCssFile . ".css' />\n";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return $script;
|
return $script;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user