MNT Broken builds

This commit is contained in:
Steve Boyd 2023-01-24 15:41:55 +13:00
parent d24ea64be2
commit 9b49e1bfcc

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'];