mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Merge pull request #699 from creative-commoners/pulls/4/broken-builds
MNT Broken builds
This commit is contained in:
commit
624444e136
@ -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'];
|
||||||
|
Loading…
Reference in New Issue
Block a user