Fix getting a document template for modules.
This commit is contained in:
parent
86aff08e2c
commit
05fe251697
@ -566,6 +566,10 @@ abstract class DocumentShow extends Base
|
||||
return $template;
|
||||
}
|
||||
|
||||
if (!empty($alias = config('type.' . $type . '.alias'))) {
|
||||
$type = $alias . '.' . str_replace('-', '_', $type);
|
||||
}
|
||||
|
||||
$documentTemplate = setting($type . '.template') ?: 'default';
|
||||
|
||||
return $documentTemplate;
|
||||
|
Loading…
x
Reference in New Issue
Block a user