From f8a8b38a0a823a4ce596133f918b343a01eeb05f Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Mon, 4 Feb 2019 22:04:48 +1300 Subject: [PATCH] Consistent check of allow_multibyte It uses an injected instance everywhere else. See https://github.com/silverstripe/silverstripe-cms/pull/2365#discussion_r247383809 --- code/Model/SiteTree.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/Model/SiteTree.php b/code/Model/SiteTree.php index 0467d6b6..52ff0575 100755 --- a/code/Model/SiteTree.php +++ b/code/Model/SiteTree.php @@ -1842,7 +1842,7 @@ class SiteTree extends DataObject implements PermissionProvider, i18nEntityProvi $helpText = (self::config()->nested_urls && $this->numChildren()) ? $this->fieldLabel('LinkChangeNote') : ''; - if (!Config::inst()->get('SilverStripe\\View\\Parsers\\URLSegmentFilter', 'default_allow_multibyte')) { + if (!URLSegmentFilter::create()->getAllowMultibyte()) { $helpText .= _t('SilverStripe\\CMS\\Forms\\SiteTreeURLSegmentField.HelpChars', ' Special characters are automatically converted or removed.'); } $urlsegment->setHelpText($helpText);