Commit ddb931b5 authored by dawehner's avatar dawehner Committed by tim.plunkett

Issue #1640498: Fix the tests!!!

parent e2085055
......@@ -184,9 +184,11 @@ function _views_find_module_templates($cache, $path) {
$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
// the sites/* part of the path because drupal_system_listing() is already
// adding that.
$path = preg_replace('/^sites\/all\//', '', $path);
$config = str_replace('/', '\/', conf_path());
$path = preg_replace('/^' . $config . '\//', '', $path);
// Because drupal_system_listing works the way it does, we check for real
// templates separately from checking for patterns.
......
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