Commit 9561ce8b authored by Ra Mänd's avatar Ra Mänd
Browse files

Strpos is faster than strstr.

parent db8d4072
......@@ -2079,7 +2079,7 @@ function field_collection_feeds_processor_targets_alter(&$targets, $entity_type,
$path = drupal_get_path('module', 'feeds') . '/mappers';
$files = drupal_system_listing('/.*\.inc$/', $path, 'name', 0);
foreach ($files as $file) {
if (strstr($file->uri, '/mappers/')) {
if (strpos($file->uri, '/mappers/') !== FALSE) {
require_once (DRUPAL_ROOT . '/' . $file->uri);
}
}
......
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