Fix for direct-install of plugins with languages.yaml #1396

This commit is contained in:
Andy Miller
2017-04-04 13:24:10 -06:00
parent f510e136c8
commit 8dc2ced94c

View File

@@ -599,9 +599,11 @@ class GPM extends Iterator
*/
public static function getPackageName($source)
{
$ignore_yaml_files = ['blueprints', 'languages'];
foreach (glob($source . "*.yaml") as $filename) {
$name = strtolower(basename($filename, '.yaml'));
if ($name == 'blueprints') {
if (in_array($name, $ignore_yaml_files)) {
continue;
}
return $name;