diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-09-17 14:45:46 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-09-17 14:45:46 +0000 |
commit | faf272e9060949adacb8f5d02d6e1093c3f3c7ac (patch) | |
tree | d9973b1daa1f69d5bf66e695b3bfafd780a42fc6 /includes/registry.inc | |
parent | 64041e67973d239d2f87bb02652fea4c18b93fa5 (diff) | |
download | brdo-faf272e9060949adacb8f5d02d6e1093c3f3c7ac.tar.gz brdo-faf272e9060949adacb8f5d02d6e1093c3f3c7ac.tar.bz2 |
- Patch #914312 by sdboyer: classes marked 'final' are not picked up by the registry.
Diffstat (limited to 'includes/registry.inc')
-rw-r--r-- | includes/registry.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/registry.inc b/includes/registry.inc index 9a12e393f..99fbfef63 100644 --- a/includes/registry.inc +++ b/includes/registry.inc @@ -165,7 +165,7 @@ function _registry_parse_files($files) { * (optional) Weight of the module. */ function _registry_parse_file($filename, $contents, $module = '', $weight = 0) { - if (preg_match_all('/^\s*(?:abstract)?\s*(class|interface)\s+([a-zA-Z0-9_]+)/m', $contents, $matches)) { + if (preg_match_all('/^\s*(?:abstract|final)?\s*(class|interface)\s+([a-zA-Z0-9_]+)/m', $contents, $matches)) { $query = db_insert('registry')->fields(array('name', 'type', 'filename', 'module', 'weight')); foreach ($matches[2] as $key => $name) { $query->values(array( |