diff options
Diffstat (limited to 'includes/common.inc')
-rw-r--r-- | includes/common.inc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/includes/common.inc b/includes/common.inc index 6bce4c599..4f19a63b5 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -5944,6 +5944,7 @@ function drupal_parse_info_file($filename) { */ function drupal_parse_info_format($data) { $info = array(); + $constants = get_defined_constants(); if (preg_match_all(' @^\s* # Start at the beginning of a line, ignoring leading whitespace @@ -5982,8 +5983,8 @@ function drupal_parse_info_format($data) { $parent = &$parent[$key]; } - // Handle PHP constants - if (defined($value)) { + // Handle PHP constants. + if (isset($constants[$value])) { $value = constant($value); } |