Skip to content

Commit

Permalink
Обратная совместимость. Метод getComponent() у CBitrixComponentTempla…
Browse files Browse the repository at this point in the history
…te появился относительно недавно
  • Loading branch information
mmjurov committed Jul 22, 2016
1 parent cf4d519 commit df086f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Maximaster/Tools/Twig/BitrixLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public function makeComponentTemplateName(\CBitrixComponentTemplate $template)

$templatePage = $template->__page;
$templateName = $template->__name;
$componentName = $template->getComponent()->getName();
$componentName = $template->__component->getName();

return "{$componentName}:{$templateName}:{$templatePage}";
}
Expand Down

0 comments on commit df086f9

Please sign in to comment.