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:
Daniel Hensby 2015-03-31 21:38:23 +01:00
commit 56f9d0c906

View File

@ -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;
} }