mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Check for if(class_exists('Widget')) in TagCloudWidget
This commit is contained in:
parent
6c1dc6fc87
commit
eb7f7488f1
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
if(class_exists('Widget')) {
|
||||||
class TagCloudWidget extends Widget {
|
class TagCloudWidget extends Widget {
|
||||||
static $db = array(
|
static $db = array(
|
||||||
"Title" => "Varchar",
|
"Title" => "Varchar",
|
||||||
@ -145,6 +145,4 @@ class TagCloudWidget extends Widget {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
?>
|
|
||||||
|
Loading…
Reference in New Issue
Block a user