Skip to content

Commit

Permalink
Fix error loading banners
Browse files Browse the repository at this point in the history
  • Loading branch information
sampoyigi committed Aug 10, 2019
1 parent 0806a99 commit 8f5da92
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions components/Banners.php
@@ -1,5 +1,6 @@
<?php namespace Igniter\Frontend\Components;

use Igniter\Frontend\Models\Banners as BannerModel;
use Main\Models\Image_tool_model;

class Banners extends \System\Classes\BaseComponent
Expand Down Expand Up @@ -43,8 +44,8 @@ protected function loadBanner()
if (isset($this->banner))
return $this->banner;

$model = Banners::isEnabled()
->where('banner_id', $this->property('banner_id'))->first();
$model = BannerModel::isEnabled()
->where('banner_id', $this->property('banner_id'))->first();

$banner = new \stdClass;
$banner->id = 'banner-slideshow-'.uniqid();
Expand Down

0 comments on commit 8f5da92

Please sign in to comment.