Commit fb370be2 authored by Nigel McNie's avatar Nigel McNie
Browse files

Make it so that plugin location doesn't need a / after it when specifying a...

Make it so that plugin location doesn't need a / after it when specifying a location to search for a pieform template.
parent 47c5c130
......@@ -1290,7 +1290,7 @@ function pieform_template_dir($file, $pluginlocation='') {
$theme = theme_setup();
foreach ($theme->inheritance as $themedir) {
$filepath = get_config('docroot') . $pluginlocation . 'theme/' . $themedir . '/pieforms/' . $file;
$filepath = get_config('docroot') . $pluginlocation . '/theme/' . $themedir . '/pieforms/' . $file;
if (is_readable($filepath)) {
return dirname($filepath);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment