Skip to content
Snippets Groups Projects
Commit 94b088ff authored by Alex Barth's avatar Alex Barth
Browse files

Fix drupal_system_listing().

parent a36af571
No related branches found
No related tags found
No related merge requests found
...@@ -88,7 +88,7 @@ abstract class FeedsPlugin extends FeedsConfigurable implements FeedsSourceInter ...@@ -88,7 +88,7 @@ abstract class FeedsPlugin extends FeedsConfigurable implements FeedsSourceInter
static $loaded = FALSE; static $loaded = FALSE;
if (!$loaded) { if (!$loaded) {
$path = drupal_get_path('module', 'feeds') .'/mappers'; $path = drupal_get_path('module', 'feeds') .'/mappers';
$files = drupal_system_listing('.*\.inc$', $path, 'name', 0); $files = drupal_system_listing('/.*\.inc$/', $path, 'name', 0);
foreach ($files as $file) { foreach ($files as $file) {
if (strstr($file->filename, '/mappers/')) { if (strstr($file->filename, '/mappers/')) {
require_once("./$file->filename"); require_once("./$file->filename");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment