mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
Consistent check of allow_multibyte
It uses an injected instance everywhere else. See https://github.com/silverstripe/silverstripe-cms/pull/2365#discussion_r247383809
This commit is contained in:
parent
c61ba88d82
commit
12274fb6ec
@ -1939,7 +1939,7 @@ class SiteTree extends DataObject implements PermissionProvider, i18nEntityProvi
|
|||||||
$helpText = (self::config()->get('nested_urls') && $this->numChildren())
|
$helpText = (self::config()->get('nested_urls') && $this->numChildren())
|
||||||
? $this->fieldLabel('LinkChangeNote')
|
? $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.');
|
$helpText .= _t('SilverStripe\\CMS\\Forms\\SiteTreeURLSegmentField.HelpChars', ' Special characters are automatically converted or removed.');
|
||||||
}
|
}
|
||||||
$urlsegment->setHelpText($helpText);
|
$urlsegment->setHelpText($helpText);
|
||||||
|
Loading…
Reference in New Issue
Block a user