Commit af8cf6e7 authored by Steven Jones's avatar Steven Jones

Issue #1266484 - Cannot verify Drupal 7.8 with PHP 5.2

parent a591c86a
......@@ -50,6 +50,7 @@ function _provision_drupal_find_themes($scope, $key = '') {
*/
function _provision_drupal_parse_info_file($filename) {
$info = array();
$constants = get_defined_constants();
if (!file_exists($filename)) {
return $info;
......@@ -93,9 +94,9 @@ function _provision_drupal_parse_info_file($filename) {
$parent = &$parent[$key];
}
// Handle PHP constants
if (defined($value)) {
$value = constant($value);
// Handle PHP constants.
if (isset($constants[$value])) {
$value = $constants[$value];
}
// Insert actual value
......
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