Skip to content

Commit

Permalink
Added drupal.js check
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanruijsenaars committed Feb 9, 2015
1 parent 8adbc78 commit c3082b2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion includes/environment.inc
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,9 @@ function drush_valid_drupal_root($path) {
// grant it is not a Drupal 7 site with a base folder named "core".
$candidate = 'core/includes/common.inc';
if (file_exists($path . '/' . $candidate) && file_exists($path . '/core/core.services.yml')) {
return $candidate;
if (file_exists($path . '/core/misc/drupal.js') || file_exists($path . '/core/assets/js/drupal.js') {
return $candidate;
}
}
// Drupal 7 root.
$candidate = 'includes/common.inc';
Expand Down

0 comments on commit c3082b2

Please sign in to comment.