mirror of
https://github.com/getgrav/grav.git
synced 2026-03-04 11:31:43 +01:00
Fix for direct-install of plugins with languages.yaml #1396
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user