We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
My environment is:
The command drush generate-makefile generates warning messages like below.
drush generate-makefile
$ drush generate-makefile result.make Undefined variable: name generate.make.inc:304 Undefined variable: name generate.make.inc:304 Undefined variable: name generate.make.inc:304
Seeing the code, the variable $name is not defined in the scope. Probably it should be passed to the function.
/** * Helper function to check for a non-default installation location. */ function _drush_generate_makefile_check_path($name, $project) { $info = array(); $type = $project['type']; $path = dirname($project['path']); // Check to see if the path is in a subdir sites/all/modules or // profiles/profilename/modules if (preg_match('@^sites/[a-zA-Z0-9_]*/' . $type . 's/..*@', $path) || preg_match('@^sites/[a-zA-Z0-9_]*/' . $type . 's/..*@', $path)) { $subdir = preg_replace(array('@^[a-zA-Z0-9_]*/[a-zA-Z0-9_]*/' . $type . 's/*@', "@/$name" . '$@'), '', $path); if (!empty($subdir)) { $info['subdir'] = $subdir; } } return $info; }
The text was updated successfully, but these errors were encountered:
I created a pull request for this after testing the patch in my environment:
#2527
Thank you in advance.
Sorry, something went wrong.
Make is deprecated. Closing old issues.
No branches or pull requests
My environment is:
The command
drush generate-makefile
generates warning messages like below.Seeing the code, the variable $name is not defined in the scope. Probably it should be passed to the function.
The text was updated successfully, but these errors were encountered: