Commit 99e054d6 authored by Zsolt Gyure's avatar Zsolt Gyure

Fix for #451

Fix Issue #451
parent a96dec08
...@@ -43,7 +43,7 @@ class StylistThemeManager implements ThemeManager ...@@ -43,7 +43,7 @@ class StylistThemeManager implements ThemeManager
public function find($themeName) public function find($themeName)
{ {
foreach ($this->getDirectories() as $directory) { foreach ($this->getDirectories() as $directory) {
if (! str_contains(strtolower($directory), strtolower($themeName))) { if (strtolower(basename($directory)) !== strtolower($themeName)) {
continue; 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