Skip to content
Snippets Groups Projects
Commit b6b6fb3f authored by Bram Goffings's avatar Bram Goffings Committed by Tim Plunkett
Browse files

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

parent 2ab27d44
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -182,6 +182,11 @@ function _views_find_module_templates($cache, $path) { ...@@ -182,6 +182,11 @@ function _views_find_module_templates($cache, $path) {
$templates = array(); $templates = array();
$regex = '/' . '\.tpl\.php' . '$' . '/'; $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 // Because drupal_system_listing works the way it does, we check for real
// templates separately from checking for patterns. // templates separately from checking for patterns.
$files = drupal_system_listing($regex, $path, 'name', 0); $files = drupal_system_listing($regex, $path, 'name', 0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment