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