Skip to content
This repository has been archived by the owner on Feb 17, 2020. It is now read-only.

Commit

Permalink
- Fixing template bug
Browse files Browse the repository at this point in the history
  • Loading branch information
akadlec committed Dec 10, 2016
1 parent fe50be6 commit 688f64c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/IPub/FlashMessages/Components/Control.php
Expand Up @@ -196,8 +196,8 @@ public function setTemplateFile($templateFile)
$templateName = preg_replace('/.latte/', '', $templateFile);

// ...check if extension template is used
if (is_file($dir . DIRECTORY_SEPARATOR . 'template' . DIRECTORY_SEPARATOR . $templateName . '.latte')) {
$templateFile = $dir . DIRECTORY_SEPARATOR . 'template' . DIRECTORY_SEPARATOR . $templateName . '.latte';
if (is_file($dir . DIRECTORY_SEPARATOR . 'template' . DIRECTORY_SEPARATOR . $templateName . DIRECTORY_SEPARATOR . 'default.latte')) {
$templateFile = $dir . DIRECTORY_SEPARATOR . 'template' . DIRECTORY_SEPARATOR . $templateName . DIRECTORY_SEPARATOR . 'default.latte';

} else {
// ...if not throw exception
Expand Down

0 comments on commit 688f64c

Please sign in to comment.