GX-Bug #53728 » SliderFix.patch
src/templates/Honeygrid/source/boxes/slider.php (revision ) | ||
---|---|---|
12 | 12 |
/** |
13 | 13 |
* @var SliderContentControl $sliderContentControl |
14 | 14 |
*/ |
15 |
$sliderContentControl = MainFactory::create('SliderContentControl', $this->category_id, $this->coo_product->pID); |
|
15 |
$sliderContentControl = MainFactory::create_object('SliderContentControl'); |
|
16 |
$sliderContentControl->set_('categoryId',$this->category_id); |
|
17 |
$sliderContentControl->set_('productId', $this->coo_product->pID); |
|
16 | 18 |
$sliderContentControl->proceed(); |
17 | 19 | |
18 | 20 |
$this->set_content_data('IMGSLIDER', $sliderContentControl->get_response()); |
src/system/classes/slider/SliderContentControl.inc.php (revision ) | ||
---|---|---|
37 | 37 |
protected $sliderReadService; |
38 | 38 |
|
39 | 39 |
|
40 |
public function __construct($categoryId = 0, $productId = 0)
|
|
40 |
public function __construct() |
|
41 | 41 |
{ |
42 | 42 |
parent::__construct(); |
43 |
|
|
44 |
$this->categoryId = (int)$categoryId; |
|
45 |
$this->productId = (int)$productId; |
|
46 | 43 |
|
47 | 44 |
$this->sliderReadService = StaticGXCoreLoader::getService('SliderRead'); |
48 | 45 |
} |