From a2ceed6f87cc5a39b20765e13d4a68b70c6f7c90 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Thu, 20 Jul 2023 11:20:56 +0200 Subject: [PATCH] do not set httpbasedir if ext/xxx/out/out.xxx.php does not exist --- inc/inc.ClassUI.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/inc/inc.ClassUI.php b/inc/inc.ClassUI.php index fcdebfd2f..d594c7feb 100644 --- a/inc/inc.ClassUI.php +++ b/inc/inc.ClassUI.php @@ -96,14 +96,16 @@ class UI extends UI_Default { * views/bootstrap/class.xx.php, without setting the 'views' element * 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"; if(file_exists($filename)) { - $httpbasedir = 'ext/'.$extname.'/'; + //$httpbasedir = 'ext/'.$extname.'/'; break; } else { $filename = $settings->_rootDir.'ext/'.$extname.'/views/bootstrap/class.'.$class.".php"; if(file_exists($filename)) { - $httpbasedir = 'ext/'.$extname.'/'; + //$httpbasedir = 'ext/'.$extname.'/'; break; } }