dotpay / PrestaShop-1.7

PrestaShop Dotpay payment module for PrestaShop 1.7
1 stars 9 forks source link

Użycie pól protected w klasie Prestashop\Dotpay\Model\Configuration #18

Closed damiweb closed 6 years ago

damiweb commented 6 years ago

Zakładam, że w poniższych linijkach chodziło o pole id obiektu klasy Language : $context->language->id

https://github.com/dotpay/PrestaShop-1.7.x/blob/f076ec4c8b649bad868c6aac860e1d2b346a1419/classes/Dotpay/Model/Configuration.php#L480 https://github.com/dotpay/PrestaShop-1.7.x/blob/f076ec4c8b649bad868c6aac860e1d2b346a1419/classes/Dotpay/Model/Configuration.php#L481

Podobna sytuacja jest niżej, tym razem dla obiektu klasy Shop: $context->shop->id

https://github.com/dotpay/PrestaShop-1.7.x/blob/f076ec4c8b649bad868c6aac860e1d2b346a1419/classes/Dotpay/Model/Configuration.php#L496 https://github.com/dotpay/PrestaShop-1.7.x/blob/f076ec4c8b649bad868c6aac860e1d2b346a1419/classes/Dotpay/Model/Configuration.php#L497