Commit e72b37ff5614b5e282ff50b0d054b85a93cb5f08
1 parent
8bf0cf28
26.05.16 change image download (git strange error, pay attention for this)
Showing
138 changed files
with
5 additions
and
4 deletions
Show diff stats
common/components/artboximage/ArtboxImageHelper.php
100644 → 100755
common/modules/artboxfile/controllers/ActionController.php
100644 → 100755
common/modules/comment/models/CommentProjectSearch.php
100644 → 100755
common/modules/comment/widgets/views/_review_comment_view.php
100644 → 100755
common/modules/comment/widgets/views/form-comment-review.php
100644 → 100755
common/modules/comment/widgets/views/list-comment-review.php
100644 → 100755
common/modules/product/controllers/ProductUnitController.php
100644 → 100755
common/modules/product/models/Product.php
... | ... | @@ -240,12 +240,12 @@ class Product extends \yii\db\ActiveRecord |
240 | 240 | foreach ($this->imagesUpload as $image) { |
241 | 241 | $imageName = $image->baseName .'.'. $image->extension; |
242 | 242 | $i = 0; |
243 | - while(file_exists(Yii::getAlias('@storage/products/'. $imageName))) { | |
243 | + while(file_exists(Yii::getAlias('@frontend/web/images/products/' . $imageName))) { | |
244 | 244 | $i++; |
245 | 245 | $imageName = $image->baseName .'_'. $i .'.'. $image->extension; |
246 | 246 | } |
247 | 247 | |
248 | - $image->saveAs(Yii::getAlias('@storage/products/'. $imageName)); | |
248 | + $image->saveAs(Yii::getAlias('@frontend/web/images/products/' .$imageName)); | |
249 | 249 | $images[] = $imageName; |
250 | 250 | } |
251 | 251 | return $images; | ... | ... |
common/modules/product/models/ProductImage.php
... | ... | @@ -97,7 +97,7 @@ class ProductImage extends \yii\db\ActiveRecord |
97 | 97 | */ |
98 | 98 | public function getImageFile() |
99 | 99 | { |
100 | - return isset($this->image) ? Yii::getAlias('@storage/products/'. $this->image) : null; | |
100 | + return isset($this->image) ? '/images/products/' . $this->image : null; | |
101 | 101 | } |
102 | 102 | |
103 | 103 | /** |
... | ... | @@ -107,9 +107,10 @@ class ProductImage extends \yii\db\ActiveRecord |
107 | 107 | public function getImageUrl() |
108 | 108 | { |
109 | 109 | // return a default image placeholder if your source image is not found |
110 | - return isset($this->image) ? '/storage/products/'. $this->image : 'default.jpg'; | |
110 | + return isset($this->image) ? '/images/products/'. $this->image : '/images/no_photo.png'; | |
111 | 111 | } |
112 | 112 | |
113 | + | |
113 | 114 | /** |
114 | 115 | * Process upload of image |
115 | 116 | * | ... | ... |
common/modules/product/models/ProductUnitSearch.php
100644 → 100755
common/modules/product/models/ProductVariantSearch.php
100644 → 100755
common/modules/product/models/RemoteCategories.php
100644 → 100755
common/modules/product/models/RemoteCategoriesSearch.php
100644 → 100755
common/modules/product/models/RemoteProducts.php
100644 → 100755
common/modules/product/models/RemoteProductsSearch.php
100644 → 100755
common/modules/product/views/manage/import-stat.php
100644 → 100755
common/modules/product/views/manage/remote-products.php
100644 → 100755
common/modules/product/views/product-unit/_form.php
100644 → 100755
common/modules/product/views/product-unit/_search.php
100644 → 100755
common/modules/product/views/product-unit/create.php
100644 → 100755
common/modules/product/views/product-unit/index.php
100644 → 100755
common/modules/product/views/product-unit/update.php
100644 → 100755
common/modules/product/views/product-unit/view.php
100644 → 100755
console/migrations/m160225_143331_comment_test.php
100644 → 100755
console/migrations/m160304_081817_rating_table.php
100644 → 100755
console/migrations/m160311_132124_rating_comment_restyle.php
100644 → 100755
console/migrations/m160406_221846_create_page.php
100644 → 100755
console/migrations/m160407_185510_create_event.php
100644 → 100755
console/migrations/m160411_211053_create_service.php
100644 → 100755
console/migrations/m160411_215739_create_seo.php
100644 → 100755
console/migrations/m160412_133944_create_seo_category.php
100644 → 100755
console/migrations/m160413_112158_create_seo_dynamic.php
100644 → 100755
console/migrations/m160414_101644_add_param_to_seo_dynamic.php
100644 → 100755
console/migrations/m160414_214745_add_key_to_seo_dynamic.php
100644 → 100755
frontend/controllers/CatalogController.old.php
100644 → 100755
frontend/web/js/vendor/bower/fotorama/.bower.json
100644 → 100755
frontend/web/js/vendor/bower/fotorama/README.md
100644 → 100755
frontend/web/js/vendor/bower/fotorama/bower.json
100644 → 100755
frontend/web/js/vendor/bower/fotorama/example.html
100644 → 100755
frontend/web/js/vendor/bower/fotorama/fotorama.css
100644 → 100755
frontend/web/js/vendor/bower/fotorama/fotorama.js
100644 → 100755