mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-01 13:39:22 +03:00
Use proper HTMLTemplateElement for all knockoutjs templates
This commit is contained in:
parent
efc2dd89e1
commit
29367a0ea7
5 changed files with 2 additions and 40 deletions
|
|
@ -1012,8 +1012,8 @@ class ServiceActions
|
|||
foreach ($aTemplates as $sName => $sFile)
|
||||
{
|
||||
$sName = \preg_replace('/[^a-zA-Z0-9]/', '', $sName);
|
||||
$sHtml .= '<script id="'.$sName.'" type="text/html" data-cfasync="false">'.
|
||||
$this->oActions->ProcessTemplate($sName, \file_get_contents($sFile)).'</script>';
|
||||
$sHtml .= '<template id="'.$sName.'">'.
|
||||
$this->oActions->ProcessTemplate($sName, \file_get_contents($sFile)).'</template>';
|
||||
}
|
||||
|
||||
unset($aTemplates);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue