mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-08 20:46:05 +00:00
do not set httpbasedir if ext/xxx/out/out.xxx.php does not exist
This commit is contained in:
parent
b63dc11a29
commit
a2ceed6f87
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user