Skip to content

Commit

Permalink
Allow multibyte to be configured (fixes #605)
Browse files Browse the repository at this point in the history
  • Loading branch information
wilr committed Aug 22, 2022
1 parent c05f704 commit 8e1b666
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/Model/BlogObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,12 +181,7 @@ public function generateURLSegment($increment = 0)
{
$increment = (int) $increment;
$filter = URLSegmentFilter::create();

// Setting this to on. Because of the UI flow, it would be quite a lot of work
// to support turning this off. (ie. the add by title flow would not work).
// If this becomes a problem we can approach it then.
// @see https://github.com/silverstripe/silverstripe-blog/issues/376
$filter->setAllowMultibyte(true);
$filter->setAllowMultibyte($this->config()->get('allow_multibyte') ?? true);

$this->URLSegment = $filter->filter($this->Title);

Expand Down

0 comments on commit 8e1b666

Please sign in to comment.