mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
BUG Fix incorrect reference to extension member ID
This commit is contained in:
parent
0a70332e60
commit
99ff67feba
@ -51,7 +51,9 @@ class BlogMemberExtension extends DataExtension {
|
||||
$urlSegment = $filter->filter($name);
|
||||
|
||||
// Fallback to generic profile name if path is empty (= no valid, convertable characters)
|
||||
if(!$urlSegment || $urlSegment == '-' || $urlSegment == '-1') $urlSegment = "profile-$this->ID";
|
||||
if(!$urlSegment || $urlSegment == '-' || $urlSegment == '-1') {
|
||||
$urlSegment = "profile-".$this->owner->ID;
|
||||
}
|
||||
|
||||
return $urlSegment;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user