Skip to content

Commit

Permalink
Merge pull request PrestaShop#21196 from okom3pom/okom3pom-patch-1
Browse files Browse the repository at this point in the history
Remove htaccess rule who don't work
  • Loading branch information
matthieu-rolland authored Dec 16, 2020
2 parents 59080ef + c44bc2a commit f16e79e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/Tools.php
Original file line number Diff line number Diff line change
Expand Up @@ -2670,8 +2670,8 @@ public static function generateHtaccess($path = null, $rewrite_settings = null,
fwrite($write_fd, 'RewriteRule ^([0-9]+)\-([0-9]+)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1-$2$3.jpg [L]' . PHP_EOL);
}

// Rewrite product images < 100 millions
for ($i = 1; $i <= 8; ++$i) {
// Rewrite product images < 10 millions
for ($i = 1; $i <= 7; ++$i) {
$img_path = $img_name = '';
for ($j = 1; $j <= $i; ++$j) {
$img_path .= '$' . $j . '/';
Expand Down

0 comments on commit f16e79e

Please sign in to comment.