This commit is contained in:
gRoussac
2013-11-26 23:08:03 +01:00
parent 5485433df6
commit 8d15f5d3e6
+1 -1
View File
@@ -114,7 +114,7 @@ class StoreCore extends ObjectModel
public function __construct($id_store = null, $id_lang = null)
{
parent::__construct($id_store, $id_lang);
parent::__construct($id_store);
$this->id_image = ($this->id && file_exists(_PS_STORE_IMG_DIR_.(int)$this->id.'.jpg')) ? (int)$this->id : false;
$this->image_dir = _PS_STORE_IMG_DIR_;
}