diff --git a/system/src/Grav/Common/GPM/GPM.php b/system/src/Grav/Common/GPM/GPM.php index 6c9e7b0e4a..ba63a55a25 100644 --- a/system/src/Grav/Common/GPM/GPM.php +++ b/system/src/Grav/Common/GPM/GPM.php @@ -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) {