mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
MNT Broken builds
This commit is contained in:
parent
d24ea64be2
commit
9b49e1bfcc
@ -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'];
|
||||
|
Loading…
Reference in New Issue
Block a user