FIX: imagen de thumbnail
This commit is contained in:
@ -105,7 +105,7 @@ class Producto extends Model {
|
||||
$this->imagen = 'default.jpg';
|
||||
$img = $this->imagenes();
|
||||
if (count($img) > 0) {
|
||||
$this->imagen = $img[0];
|
||||
$this->imagen = implode('/', [mb_strtolower($this->nombre), $img[0]]);
|
||||
}
|
||||
}
|
||||
return $this->imagen;
|
||||
|
Reference in New Issue
Block a user