From b6b6fb3fa1a94d0efefbb52ad747435afcf65b80 Mon Sep 17 00:00:00 2001 From: aspilicious <aspilicious@172527.no-reply.drupal.org> Date: Fri, 15 Jun 2012 10:47:56 -0400 Subject: [PATCH] Issue #1626422 by aspilicious: Fixed broken template path parsing with workaround. --- views.module | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/views.module b/views.module index b039ccc3151f..b86b3f88cbfd 100644 --- a/views.module +++ b/views.module @@ -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); -- GitLab