Skip to content

Commit

Permalink
Dev: edit twig files
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Jun 2, 2017
1 parent e95bbfe commit 024aba7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions application/helpers/admin/template_helper.php
Expand Up @@ -166,6 +166,10 @@ function gettemplatefilename($template, $templatefile) {
$oEditedTemplate = Template::model()->getTemplateConfiguration($template);
switch (pathinfo($templatefile, PATHINFO_EXTENSION))
{
case 'twig':
$oEditedTemplate = Template::model()->getTemplateConfiguration($template);
return $oEditedTemplate->viewPath.$templatefile;
break;
case 'pstpl':
$oEditedTemplate = Template::model()->getTemplateConfiguration($template);
return $oEditedTemplate->viewPath.$templatefile;
Expand Down

0 comments on commit 024aba7

Please sign in to comment.