mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 06:05:56 +00:00
MINOR Allowing TRUE vetoes in SiteTree->augmentValidURLSegment() (in addition to the existing FALSE vetoes)
This commit is contained in:
parent
2dd96a4050
commit
922dd126c6
@ -1549,9 +1549,10 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
$values = $this->extend('augmentValidURLSegment');
|
$votes = $this->extend('augmentValidURLSegment');
|
||||||
if (count($values) && !min($values)) {
|
if($votes) {
|
||||||
return false;
|
$votes = array_filter((array)$votes, 'is_null');
|
||||||
|
if($votes) return min($votes);
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user