Skip to content

Commit

Permalink
Plugins containing "theme" should to be treated as themes
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphaël Droz committed May 13, 2020
1 parent 58da1cd commit c5bef56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/src/Grav/Common/GPM/GPM.php
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ public static function getPackageType($source)

// either theme or plugin
$name = basename($source);
if (Utils::contains($name, 'theme')) {
if (Utils::contains($name, 'theme-')) {
return 'theme';
}
if (Utils::contains($name, 'plugin')) {
Expand Down

0 comments on commit c5bef56

Please sign in to comment.