Skip to content

Commit

Permalink
Minor fixes for PR
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Mussulis committed Aug 28, 2023
1 parent dbae675 commit e4d42d2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -484,10 +484,13 @@ public function copyImageFile($imgfile, &$item, $extra)
$impath = "/$i1/$i2/$bimgfile";
// target directory;

if(!strstr(getcwd(), "pub"))
if(!strstr(getcwd(), "pub")) {
$l2d = "pub/media/catalog/product/$i1/$i2";
else
}
else {
$l2d = "media/catalog/product/$i1/$i2";
}

// test for existence
$targetpath = "$l2d/$bimgfile";

Expand Down
1 change: 0 additions & 1 deletion magmi/plugins/utilities/clearproducts/clearproduct.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ public function runUtility()
}

//clean url rewrites for products
//$sql = "DELETE FROM ".$this->tablename("core_url_rewrite")." WHERE product_id IS NOT NULL AND is_system=1";
$sql = "DELETE FROM ".$this->tablename("url_rewrite")." WHERE entity_id IS NOT NULL AND is_autogenerated=1";
$this->delete($sql);

Expand Down

0 comments on commit e4d42d2

Please sign in to comment.