Unverified Commit 9a1bb80e authored by Nicolas Widart's avatar Nicolas Widart Committed by GitHub

Merge pull request #462 from teoni/3.0

Fix for #451
parents 5d11bffc 99e054d6
......@@ -43,7 +43,7 @@ class StylistThemeManager implements ThemeManager
public function find($themeName)
{
foreach ($this->getDirectories() as $directory) {
if (! str_contains(strtolower($directory), strtolower($themeName))) {
if (strtolower(basename($directory)) !== strtolower($themeName)) {
continue;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment