source/Core/Config.php
public function getPictureUrl($file, $admin = false, $ssl = null, $lang = null, $shopId = null, $defPic = "master/nopic.jpg")
    {
        if ($altUrl = Registry::getPictureHandler()->getAltImageUrl('', $file, $ssl)) {
            return $altUrl;
        }

        $nativeImg = $this->getConfigParam('blNativeImages');
        $url = $this->getUrl($file, $this->_sPictureDir, $admin, $ssl, $nativeImg, $lang, $shopId);

        //anything is better than empty name, because <img src=""> calls shop once more = x2 SLOW.
        if (!$url && $defPic) {
            $url = $this->getUrl($defPic, $this->_sPictureDir, $admin, $ssl, $nativeImg, $lang, $shopId);
        }

        return $url;
    }
public function getPictureUrl($file, $admin = false, $ssl = null, $lang = null, $shopId = null, $defPic = "master/nopic.jpg")
    {
        if ($altUrl = Registry::getPictureHandler()->getAltImageUrl('', $file, $ssl)) {
            return $altUrl;
        }

        $nativeImg = $this->getConfigParam('blNativeImages');
        $url = $this->getUrl($file, $this->_sPictureDir, $admin, $ssl, $nativeImg, $lang, $shopId);

        //anything is better than empty name, because <img src=""> calls shop once more = x2 SLOW.
        if (!$url && $defPic) {
            $url = $this->getUrl($defPic, $this->_sPictureDir, $admin, $ssl, $nativeImg, $lang, $shopId);
        }

        return $url;
    }
public function getPictureUrl ( $ file , $ admin = false , $ ssl = null , $ lang = null , $ shopId = null , $ defPic = "master/nopic.jpg" ) { if ( $ altUrl = Registry :: getPictureHandler ( ) -> getAltImageUrl ( '' , $ file , $ ssl ) ) { return $ altUrl ; } $ nativeImg = $ this -> getConfigParam ( 'blNativeImages' ) ; $ url = $ this -> getUrl ( $ file , $ this -> _sPictureDir , $ admin , $ ssl , $ nativeImg , $ lang , $ shopId ) ; //anything is better than empty name, because <img src=""> calls shop once more = x2 SLOW. if ( ! $ url && $ defPic ) { $ url = $ this -> getUrl ( $ defPic , $ this -> _sPictureDir , $ admin , $ ssl , $ nativeImg , $ lang , $ shopId ) ; } return $ url ; }
Finds and returns product picture file or folder url

@param string $file   File name
@param bool   $admin  Whether to force admin
@param bool   $ssl    Whether to force ssl
@param int    $lang   Language
@param int    $shopId Shop id
@param string $defPic Default (nopic) image path ["0/nopic.jpg"]

@return string
Finds and returns product picture file or folder url