Beispiel #1
0
 /**
  * Removes any forward slashes from the start of the uploaded file name.
  * This addresses a bug where category pages were being saved with duplicate
  * slashes, e.g. catalog/category//tswifty_4.jpg.
  * 
  * @param array $result
  * @return string
  */
 public function saveUploadedFile($result = array())
 {
     $file = parent::saveUploadedFile($result);
     $file = ltrim($file, '/');
     return $file;
 }