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 Jul 27, 2020
1 parent fc97e88 commit c75c09c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions system/src/Grav/Common/GPM/GPM.php
Original file line number Diff line number Diff line change
Expand Up @@ -575,10 +575,10 @@ 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')) {
if (Utils::contains($name, 'plugin-')) {
return 'plugin';
}
foreach (glob($source . '*.php') as $filename) {
Expand Down

0 comments on commit c75c09c

Please sign in to comment.