Skip to content
Permalink
Browse files

Fixing issue with how the check is done for determining if templatePa…

…th already terminates with subDir
  • Loading branch information...
darensipes committed Jan 10, 2018
1 parent e3c3594 commit 4c3638fb98c0664fb11dcfac2014d0c081624e58
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/View/View.php
@@ -1249,7 +1249,7 @@ protected function _getViewFileName($name = null)
if (strlen($this->subDir)) {
$subDir = $this->subDir . DIRECTORY_SEPARATOR;
// Check if templatePath already terminates with subDir
if (strrpos($templatePath, $subDir) == strlen($templatePath) - strlen($subDir)) {
if ($templatePath != $subDir && substr($templatePath, -(strlen($subDir))) == $subDir) {
$subDir = '';
}
}

0 comments on commit 4c3638f

Please sign in to comment.
You can’t perform that action at this time.