Skip to content

Commit

Permalink
bugfix - check has_extension on DataObject instead of Object (#162)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsirish authored Apr 4, 2019
1 parent 5a6b682 commit cd6a430
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/FlexSlider.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public function SlideShow()
public function contentcontrollerInit()
{
// only call custom script if page has Slides and DataExtension
if (Object::has_extension($this->owner->ClassName, 'FlexSlider')) {
if (DataObject::has_extension($this->owner->ClassName, 'FlexSlider')) {
if ($this->owner->SlideShow()->exists() && !$this->init_loaded) {
$this->getCustomScript();
$this->init_loaded = true;
Expand Down

0 comments on commit cd6a430

Please sign in to comment.