MINOR Allowing TRUE vetoes in SiteTree->augmentValidURLSegment() (in addition to the existing FALSE vetoes)

This commit is contained in:
Ingo Schommer 2011-08-29 14:47:29 +02:00
parent 2dd96a4050
commit 922dd126c6

View File

@ -1549,9 +1549,10 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
return false;
}
$values = $this->extend('augmentValidURLSegment');
if (count($values) && !min($values)) {
return false;
$votes = $this->extend('augmentValidURLSegment');
if($votes) {
$votes = array_filter((array)$votes, 'is_null');
if($votes) return min($votes);
}
return true;