Author Topic: VM 3.0.6 TCPDF ERROR: [Image] Unable to get the size of the image:  (Read 15662 times)

zerilou

  • Beginner
  • *
  • Posts: 3
Re: VM 3.0.6 TCPDF ERROR: [Image] Unable to get the size of the image:
« Reply #45 on: April 20, 2017, 17:48:44 pm »
I take the previous version of this file i got on my backup website

It s seem to work now.

/**
    * displays the logos of a VirtueMart plugin
    *
    * @author Valerie Isaksen
    * @author Max Milbers
    * @param array $logo_list
    * @return html with logos
    */
   protected function displayLogos ($logo_list) {

      $img = "";

      if (!(empty($logo_list))) {
         $url = JURI::root () . '/images/stories/virtuemart/' . $this->_psType . '/';
         if (!is_array ($logo_list)) {
            $logo_list = (array)$logo_list;
         }
         foreach ($logo_list as $logo) {
            if(!empty($logo)){
               $alt_text = substr ($logo, 0, strpos ($logo, '.'));
               $img .= '<span class="vmCart' . ucfirst($this->_psType) . 'Logo" ><img align="middle" src="' . $url . $logo . '"  alt="' . $alt_text . '" /></span> ';
            }
         }
      }
      return $img;
   }