Skip to content
Permalink
Browse files

Fix error loading banners

  • Loading branch information...
sampoyigi committed Aug 10, 2019
1 parent 0806a99 commit 8f5da92f55b2c026e17b6916d9e2c8ad94634ceb
Showing with 3 additions and 2 deletions.
  1. +3 −2 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
@@ -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();

0 comments on commit 8f5da92

Please sign in to comment.
You can’t perform that action at this time.