Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Commit

Permalink
Default slug method is lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
kicaj committed May 19, 2018
1 parent e543898 commit 85bbcd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Model/Behavior/SlugBehavior.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public function createSlug($slug, $field)
throw new MethodException(__d('slug', 'Method {0} does not exist.', $this->_config[$field]['method']));
}
} else {
$slug = Text::slug($slug, [
$slug = Text::slug(mb_strtolower($slug), [
'replacement' => $this->_config[$field]['replacement']
]);
}
Expand Down

0 comments on commit 85bbcd6

Please sign in to comment.