Merge pull request #699 from creative-commoners/pulls/4/broken-builds

MNT Broken builds
This commit is contained in:
Guy Sartorelli 2023-01-25 12:46:17 +13:00 committed by GitHub
commit 624444e136
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,6 +9,7 @@ use SilverStripe\ORM\ArrayList;
use SilverStripe\ORM\DataObject;
use SilverStripe\ORM\DB;
use SilverStripe\Widgets\Model\Widget;
use SilverStripe\Control\Controller;
if (!class_exists(Widget::class)) {
return;
@ -98,7 +99,7 @@ class BlogTagsCloudWidget extends Widget
foreach ($records as $record) {
$tag = DataObject::create();
$tag->TagName = $record['Title'];
$link = $bloglink.'tag/'.$record['URLSegment'];
$link = Controller::join_links($bloglink, 'tag', $record['URLSegment']);
$tag->Link = $link;
if ($record['TagCount'] > $maxTagCount) {
$maxTagCount = $record['TagCount'];