Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ($simple->getImage() && $simple->getImage() !="no_selection" && in_array('image', $reloadValues))
- {
- $url = $this->getUrl('amconf/ajax', array('id' => $simple->getId()));
- if (isset($_SERVER['HTTPS']) && 'off' != $_SERVER['HTTPS'] && $_SERVER['HTTPS'] != "")
- {
- $url = str_replace('http:', 'https:', $url);
- }
- $confData[$strKey]['media_url'] = $url;
- if(Mage::getStoreConfig('amconf/general/oneselect_reload')) {
- $k = $strKey;
- if(strpos($strKey, ',')){
- $k = substr($strKey, 0, strpos($strKey, ','));
- }
- if(!(array_key_exists($k, $confData) && array_key_exists('media_url', $confData[$k]))){
- $confData[$k]['media_url'] = $confData[$strKey]['media_url'];
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement