do not set httpbasedir if ext/xxx/out/out.xxx.php does not exist

This commit is contained in:
Uwe Steinmann 2023-07-20 11:20:56 +02:00
parent b63dc11a29
commit a2ceed6f87

View File

@ -96,14 +96,16 @@ class UI extends UI_Default {
* views/bootstrap/class.xx.php, without setting the 'views' element * views/bootstrap/class.xx.php, without setting the 'views' element
* in the configuration * in the configuration
*/ */
if(file_exists($settings->_rootDir.'ext/'.$extname.'/out/out.'.$class.".php"))
$httpbasedir = 'ext/'.$extname.'/';
$filename = $settings->_rootDir.'ext/'.$extname.'/views/'.$theme."/class.".$class.".php"; $filename = $settings->_rootDir.'ext/'.$extname.'/views/'.$theme."/class.".$class.".php";
if(file_exists($filename)) { if(file_exists($filename)) {
$httpbasedir = 'ext/'.$extname.'/'; //$httpbasedir = 'ext/'.$extname.'/';
break; break;
} else { } else {
$filename = $settings->_rootDir.'ext/'.$extname.'/views/bootstrap/class.'.$class.".php"; $filename = $settings->_rootDir.'ext/'.$extname.'/views/bootstrap/class.'.$class.".php";
if(file_exists($filename)) { if(file_exists($filename)) {
$httpbasedir = 'ext/'.$extname.'/'; //$httpbasedir = 'ext/'.$extname.'/';
break; break;
} }
} }