Skip to content

Commit c75c09c

Browse files
author
Raphaël Droz
committed
Plugins containing "theme" should to be treated as themes
Sommerregen/grav-plugin-themer#6 `./bin/gpm -vvv direct-install https://github.com/Sommerregen/grav-plugin-themer/archive/v1.1.0.zip`
1 parent fc97e88 commit c75c09c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

system/src/Grav/Common/GPM/GPM.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -575,10 +575,10 @@ public static function getPackageType($source)
575575

576576
// either theme or plugin
577577
$name = basename($source);
578-
if (Utils::contains($name, 'theme')) {
578+
if (Utils::contains($name, 'theme-')) {
579579
return 'theme';
580580
}
581-
if (Utils::contains($name, 'plugin')) {
581+
if (Utils::contains($name, 'plugin-')) {
582582
return 'plugin';
583583
}
584584
foreach (glob($source . '*.php') as $filename) {

0 commit comments

Comments
 (0)