Skip to content

Commit

Permalink
Normal $view_path in render function [#3 state:resolved]
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabrice Luraine committed May 28, 2009
1 parent da44999 commit cc15bbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/limonade.php
Expand Up @@ -1153,7 +1153,7 @@ function render($content_or_func, $layout = '', $locals = array())
$args = func_get_args();
$content_or_func = array_shift($args);
$layout = count($args) > 0 ? array_shift($args) : layout();
$view_path = option('views_dir').$content_or_func;
$view_path = file_path(option('views_dir'),$content_or_func);
$vars = array_merge(set(), $locals);

if(function_exists($content_or_func))
Expand Down

0 comments on commit cc15bbd

Please sign in to comment.