mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-11 16:35:38 +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.
|
||||
*/
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue
Block a user