Strategery-Inc / Magento2-InfiniteScroll

Automatically load the next page of products in Magento. Easy to install and configure, this module works 100% out of the box with vanilla Magento 2.x. For IAS license info: https://github.com/Strategery-Inc/Magento2-InfiniteScroll/issues/27#issuecomment-396148819
Academic Free License v3.0
57 stars 43 forks source link

Magento 1 method name in Block Init.php #62

Open plhubert-tbd opened 4 years ago

plhubert-tbd commented 4 years ago
     * @return bool|false
     */
    public function getLoaderImage()
    {
        $url = $this->getScrollConfig('design/loading_img');

        if (!empty($url)) {
            $url = strpos($url, 'http') === 0 ? $url : $this->getSkinUrl($url);
        }
        return empty($url) ? false : $url;
    }

You should use $this->getViewFileUrl($url) instead of $this->getSkinUrl($url).

Pierre-Louis

gsomoza commented 4 years ago

Thanks @plhubert-tbd – any chance you'd consider making a PR for this?