From c75c09c49e71624c5ee1778dd0b58dd4e0c46c01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Droz?= Date: Wed, 13 May 2020 11:07:38 -0300 Subject: [PATCH] Plugins containing "theme" should to be treated as themes https://github.com/Sommerregen/grav-plugin-themer/issues/6 `./bin/gpm -vvv direct-install https://github.com/Sommerregen/grav-plugin-themer/archive/v1.1.0.zip` --- system/src/Grav/Common/GPM/GPM.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/src/Grav/Common/GPM/GPM.php b/system/src/Grav/Common/GPM/GPM.php index 6c9e7b0e4..ba63a55a2 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) {