|
@@ -149,11 +149,11 @@ |
|
|
block discarded – undo |
|
149
|
149
|
$dir = dirname($this->getReflection()->getFileName()); |
|
150
|
150
|
|
|
151
|
151
|
// ...check if extension template is used |
|
152
|
|
- if (is_file($dir . DIRECTORY_SEPARATOR . 'template' . DIRECTORY_SEPARATOR . $templateFile)) { |
|
153
|
|
- return $dir . DIRECTORY_SEPARATOR . 'template' . DIRECTORY_SEPARATOR . $templateFile; |
|
|
152
|
+ if (is_file($dir.DIRECTORY_SEPARATOR.'template'.DIRECTORY_SEPARATOR.$templateFile)) { |
|
|
153
|
+ return $dir.DIRECTORY_SEPARATOR.'template'.DIRECTORY_SEPARATOR.$templateFile; |
|
154
|
154
|
|
|
155
|
|
- } elseif (is_file($dir . DIRECTORY_SEPARATOR . 'template' . DIRECTORY_SEPARATOR . $templateFile . '.latte')) { |
|
156
|
|
- return $dir . DIRECTORY_SEPARATOR . 'template' . DIRECTORY_SEPARATOR . $templateFile . '.latte'; |
|
|
155
|
+ } elseif (is_file($dir.DIRECTORY_SEPARATOR.'template'.DIRECTORY_SEPARATOR.$templateFile.'.latte')) { |
|
|
156
|
+ return $dir.DIRECTORY_SEPARATOR.'template'.DIRECTORY_SEPARATOR.$templateFile.'.latte'; |
|
157
|
157
|
} |
|
158
|
158
|
|
|
159
|
159
|
// ...if not throw exception |
Please login to merge, or discard this patch.