Skip to content

Commit

Permalink
fix(ocmod): limita correção do bug do twig na versão OC 3.0.3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
valdeir2000 committed Oct 17, 2020
1 parent 9160b8c commit 6472ba0
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions install.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,16 @@
</search>
<add position="after">
<![CDATA[
$file_ocmod = DIR_MODIFICATION . $filename . '.twig';
if (version_compare(VERSION, '3.0.3.6', '==')) {
$file_ocmod = DIR_MODIFICATION . $filename . '.twig';
$application_folder = basename(DIR_APPLICATION);
$folder_ocmod_template = str_replace(DIR_APPLICATION, $application_folder . '/', DIR_TEMPLATE);
$file_ocmod = DIR_MODIFICATION . $folder_ocmod_template . $filename . '.twig';
$application_folder = basename(DIR_APPLICATION);
$folder_ocmod_template = str_replace(DIR_APPLICATION, $application_folder . '/', DIR_TEMPLATE);
$file_ocmod = DIR_MODIFICATION . $folder_ocmod_template . $filename . '.twig';
if (is_file($file_ocmod)) {
$file = $file_ocmod;
if (is_file($file_ocmod)) {
$file = $file_ocmod;
}
}
]]>
</add>
Expand Down

0 comments on commit 6472ba0

Please sign in to comment.