dynamic / silverstripe-carousel

A simple Bootstrap carousel for Silverstripe websites
BSD 3-Clause "New" or "Revised" License
0 stars 2 forks source link

BUG: Class ‘Inverval’ does not exist on CarouselPageExtension.php #16

Closed mhenden closed 10 months ago

mhenden commented 10 months ago

Describe the bug Error produced: Class ‘Inverval’ does not exist on CarouselPageExtension.php

To Reproduce Steps to reproduce the behavior:

  1. In Silverstripe CMS select a page and set up Carousel
  2. Save slideshow
  3. See error: Class ‘Inverval’ does not exist on CarouselPageExtension.php

Expected behavior I expected to see my page with slideshow but saw error message instead

Solution Edit line 148 of CarouselPageExtension.php

Original:

$interval = $this->owner->Interval; if (!$this->owner->Interval || $this->owner->Interval < 0) { $interval = self::$defaults['Inverval'];

Updated:

$interval = $this->owner->Interval; if (!$this->owner->Interval || $this->owner->Interval < 0) { $interval = self::$defaults['Interval'];