Skip to content

Commit

Permalink
Merge pull request #462 from teoni/3.0
Browse files Browse the repository at this point in the history
Fix for #451
  • Loading branch information
nWidart authored Feb 26, 2018
2 parents 5d11bff + 99e054d commit 9a1bb80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/Workshop/Manager/StylistThemeManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function all()
public function find($themeName)
{
foreach ($this->getDirectories() as $directory) {
if (! str_contains(strtolower($directory), strtolower($themeName))) {
if (strtolower(basename($directory)) !== strtolower($themeName)) {
continue;
}

Expand Down

0 comments on commit 9a1bb80

Please sign in to comment.