mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-08 20:46:05 +00:00
check for view in current view and default bootstrap view
This commit is contained in:
parent
039473d905
commit
b63dc11a29
|
@ -81,11 +81,15 @@ class UI extends UI_Default {
|
||||||
* will not be set because out/out.xxx.php is still used.
|
* will not be set because out/out.xxx.php is still used.
|
||||||
*/
|
*/
|
||||||
if(isset($extconf['views'][$class])) {
|
if(isset($extconf['views'][$class])) {
|
||||||
$filename = $settings->_rootDir.'ext/'.$extname.'/views/'.$theme."/".$extconf['views'][$class]['file'];
|
$themes = [$theme];
|
||||||
if(file_exists($filename)) {
|
$themes[] = 'bootstrap';
|
||||||
// $httpbasedir = 'ext/'.$extname.'/';
|
foreach($themes as $ttheme) {
|
||||||
$classname = $extconf['views'][$class]['name'];
|
$filename = $settings->_rootDir.'ext/'.$extname.'/views/'.$ttheme."/".$extconf['views'][$class]['file'];
|
||||||
break;
|
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
|
/* New views are added by creating a file out/out.xx.php and
|
||||||
|
|
Loading…
Reference in New Issue
Block a user