Skip to content

Commit

Permalink
ucfirst on renderer dir
Browse files Browse the repository at this point in the history
  • Loading branch information
jakoch committed Sep 26, 2012
1 parent 1122a83 commit fbafeeb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions framework/Koch/View/Mapper.php
Expand Up @@ -224,8 +224,8 @@ public static function getModuleTemplatePaths()
$module_paths = array(
ROOT_MOD,
ROOT_MOD . $module . DIRECTORY_SEPARATOR,
ROOT_MOD . $module . DIRECTORY_SEPARATOR . 'View' . DIRECTORY_SEPARATOR,
ROOT_MOD . $module . DIRECTORY_SEPARATOR . 'View' . DIRECTORY_SEPARATOR . $renderer . DIRECTORY_SEPARATOR
ROOT_MOD . $module . '/View/',
ROOT_MOD . $module . '/View/' . ucfirst($renderer) . DIRECTORY_SEPARATOR
);

return $module_paths;
Expand Down Expand Up @@ -253,7 +253,7 @@ public static function getModuleTemplatePath($template)
$renderer = HttpRequest::getRoute()->getRenderEngine();

// the template with that name is not found on our default paths
return ROOT_THEMES_CORE . 'view' . DIRECTORY_SEPARATOR . $renderer . DIRECTORY_SEPARATOR . 'template_not_found.tpl';
return ROOT_THEMES_CORE . 'view/' . $renderer . '/template_not_found.tpl';
}
}

Expand Down

0 comments on commit fbafeeb

Please sign in to comment.