mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 10:38:45 +02:00
N°2314 - Markup extensibility: Fall back on iTop's default theme when a non existing theme is selected
This commit is contained in:
@@ -2737,7 +2737,7 @@ EOF;
|
||||
// Force to have a default theme if none in the DM
|
||||
if(empty($aThemes))
|
||||
{
|
||||
$aDefaultThemeInfo = $this->GetDefaultThemeInformation();
|
||||
$aDefaultThemeInfo = ThemeHandler::GetDefaultThemeInformation();
|
||||
$aThemes[$aDefaultThemeInfo['name']] = $aDefaultThemeInfo['parameters'];
|
||||
}
|
||||
|
||||
@@ -2755,29 +2755,6 @@ EOF;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Return default theme name and parameters
|
||||
*
|
||||
* @return array
|
||||
* @since 2.7.0
|
||||
*/
|
||||
protected function GetDefaultThemeInformation()
|
||||
{
|
||||
return array(
|
||||
'name' => 'light-grey',
|
||||
'parameters' => array(
|
||||
'variables' => array(),
|
||||
'imports' => array(
|
||||
'css-variables' => '../css/css-variables.scss',
|
||||
),
|
||||
'stylesheets' => array(
|
||||
'jqueryui' => '../css/ui-lightness/jqueryui.scss',
|
||||
'main' => '../css/light-grey.scss',
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param \MFElement $oBrandingNode
|
||||
* @param string $sTempTargetDir
|
||||
|
||||
Reference in New Issue
Block a user