Add multi 'template' for one PRE 'name'
This commit is contained in:
parent
7344002a3a
commit
5a439cb932
1 changed files with 6 additions and 4 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue