Commit ad920d32 authored by profix898's avatar profix898

- bugfix: error in preg_match(), invalid regexp

parent 41150e5f
......@@ -42,7 +42,7 @@ function _gallery_report($download = FALSE, $report = array(), $cache = FALSE) {
$modules = drupal_system_listing('\.module$', 'modules', 'name', 0);
system_get_files_database($modules, 'module');
foreach ($modules as $name => $module) {
if (preg_match('/^gallery[]$|^gallery_/', $name)) {
if (preg_match('/^gallery$|^gallery_/', $name)) {
$info = drupal_parse_info_file(dirname($module->filename) .'/'. $module->name .'.info');
$report['Module']['Version'][$info['name']] = array(
'Version' => isset($info['version']) ? $info['version'] : 'unknown',
......
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