Add multi 'template' for one PRE 'name'

This commit is contained in:
Visman 2023-10-24 21:09:41 +07:00
parent 7344002a3a
commit 5a439cb932

View file

@ -167,10 +167,12 @@ class Extension extends Model
$data = \file_get_contents($path);
$this->prepareData['templates']['pre'][$cur['template']][$cur['name']][] = [
'priority' => $cur['priority'] ?: 0,
'data' => $data,
];
foreach (\explode(',', $cur['template']) as $template) {
$this->prepareData['templates']['pre'][$template][$cur['name']][] = [
'priority' => $cur['priority'] ?: 0,
'data' => $data,
];
}
break;
default: