mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Compare commits
No commits in common. "f8988ad5c392ca34158c578f393b1a1b6524f994" and "214c370d6816e22ae11e5f665347213361d745c9" have entirely different histories.
f8988ad5c3
...
214c370d68
@ -56,7 +56,7 @@ class BlogMemberExtension extends DataExtension
|
||||
$this->owner->URLSegment = $this->generateURLSegment();
|
||||
|
||||
while (!$this->validURLSegment()) {
|
||||
$this->owner->URLSegment = preg_replace('/-[0-9]+$/', '', $this->owner->URLSegment) . '-' . $count;
|
||||
$this->owner->URLSegment = preg_replace('/-[0-9]+$/', null, $this->owner->URLSegment) . '-' . $count;
|
||||
$count++;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user