fall back to bootstrap file, include theme style

This commit is contained in:
Uwe Steinmann 2021-04-15 10:31:37 +02:00
parent 5efc5802b7
commit ac85cfe26d

View File

@ -102,9 +102,14 @@ class UI extends UI_Default {
}
if(!$filename)
$filename = $settings->_rootDir."views/".$theme."/class.".$class.".php";
/* Fall back onto the view class in bootstrap theme */
if(!file_exists($filename))
$filename = $settings->_rootDir."views/bootstrap/class.".$class.".php";
if(!file_exists($filename))
$filename = '';
if($filename) {
/* Always include the base class which defines class SeedDMS_Theme_Style */
require($settings->_rootDir."views/".$theme."/class.".ucfirst($theme).".php");
require($filename);
$view = new $classname($params, $theme);
/* Set some configuration parameters */