check for view in current view and default bootstrap view

This commit is contained in:
Uwe Steinmann 2023-07-17 14:55:54 +02:00
parent 039473d905
commit b63dc11a29

View File

@ -81,11 +81,15 @@ class UI extends UI_Default {
* will not be set because out/out.xxx.php is still used.
*/
if(isset($extconf['views'][$class])) {
$filename = $settings->_rootDir.'ext/'.$extname.'/views/'.$theme."/".$extconf['views'][$class]['file'];
if(file_exists($filename)) {
// $httpbasedir = 'ext/'.$extname.'/';
$classname = $extconf['views'][$class]['name'];
break;
$themes = [$theme];
$themes[] = 'bootstrap';
foreach($themes as $ttheme) {
$filename = $settings->_rootDir.'ext/'.$extname.'/views/'.$ttheme."/".$extconf['views'][$class]['file'];
if(file_exists($filename)) {
// $httpbasedir = 'ext/'.$extname.'/';
$classname = $extconf['views'][$class]['name'];
break;
}
}
}
/* New views are added by creating a file out/out.xx.php and