diff options
Diffstat (limited to 'includes/filesystem.inc')
-rw-r--r-- | includes/filesystem.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/filesystem.inc b/includes/filesystem.inc index d7c71f9..26a0060 100644 --- a/includes/filesystem.inc +++ b/includes/filesystem.inc @@ -20,7 +20,7 @@ class video_filesystem { foreach ($modules as $module) { $mobule_files = array(); $module_path = drupal_get_path('module', $module) . '/filesystem'; - $mobule_files = file_scan_directory($module_path, '^.*\.inc$'); + $mobule_files = file_scan_directory($module_path, '/.*\.inc/'); if (is_array($mobule_files)) { foreach ($mobule_files as $file) { if ($file->name == $filesystem) @@ -70,13 +70,13 @@ class video_filesystem { // We do this by scanning our transcoders folder $form = array('radios' => array(), 'help' => array(), 'admin_settings' => array()); $path = drupal_get_path('module', 'video') . '/filesystem'; - $files = file_scan_directory($path, '^.*\.inc$'); + $files = file_scan_directory($path, '/.*\.inc/'); // check inside sub modules $modules = module_list(); foreach ($modules as $module) { $mobule_files = array(); $module_path = drupal_get_path('module', $module) . '/filesystem'; - $mobule_files = file_scan_directory($module_path, '^.*\.inc$'); + $mobule_files = file_scan_directory($module_path, '/.*\.inc/'); $files = array_merge($files, $mobule_files); } |