mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Merge pull request #168 from tractorcow/pulls/2.0/fix-member-url
BUG Fix incorrect reference to extension member ID
This commit is contained in:
commit
56f9d0c906
@ -51,7 +51,9 @@ class BlogMemberExtension extends DataExtension {
|
|||||||
$urlSegment = $filter->filter($name);
|
$urlSegment = $filter->filter($name);
|
||||||
|
|
||||||
// Fallback to generic profile name if path is empty (= no valid, convertable characters)
|
// 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;
|
return $urlSegment;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user