Commit b6b6fb3f authored by aspilicious's avatar aspilicious Committed by tim.plunkett

Issue #1626422 by aspilicious: Fixed broken template path parsing with workaround.

parent 2ab27d44
......@@ -182,6 +182,11 @@ function _views_find_module_templates($cache, $path) {
$templates = array();
$regex = '/' . '\.tpl\.php' . '$' . '/';
// @todo Remove this once #1626580 is committed. For now, We need to remove
// the sites/all part of the path because drupal_system_listing() is already
// adding that.
$path = preg_replace('/^sites\/all\//', '', $path);
// Because drupal_system_listing works the way it does, we check for real
// templates separately from checking for patterns.
$files = drupal_system_listing($regex, $path, 'name', 0);
......
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