예제 #1
0
 /**
  * Replace missing skin images with a placeholder.
  * 
  * @param string $file   The file path.
  * @param array  $params Path resolution parameters.
  * 
  * @return string
  */
 public function validateFile($file, array $params)
 {
     return parent::validateFile($file, $params);
     $filename = parent::validateFile($file, $params);
     if (!$filename && $this->isImage($file)) {
         return Mage::getStoreConfig('imagefill/general/placeholder_url');
     }
     return $filename;
 }