Skip to content

Commit

Permalink
Merge pull request #103 from mollie/2.3-8.4.0
Browse files Browse the repository at this point in the history
2.3-8.4.0 -- Fix image reference according to new API specs
  • Loading branch information
QualityWorks-Dev authored Jul 24, 2018
2 parents b6452a1 + f9db7d1 commit 4236f61
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 40 deletions.
2 changes: 1 addition & 1 deletion catalog/model/extension/payment/mollie/base.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public function getMethod($address, $total)
$icon = "";

if ($this->config->get($moduleCode . "_show_icons")) {
$icon = '<img src="' . htmlspecialchars($payment_method->image->normal) . '" height="20" style="margin:0 5px -5px 0" />';
$icon = '<img src="' . htmlspecialchars($payment_method->image->size1x) . '" height="20" style="margin:0 5px -5px 0" />';
}

return array(
Expand Down
78 changes: 39 additions & 39 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

echo "Retrieving Mollie API client v2..."
git submodule update --init
rmdir ./catalog/controller/extension/payment/mollie-api-client/examples
rmdir ./catalog/controller/extension/payment/mollie-api-client/tests
rm -rf ./catalog/controller/extension/payment/mollie-api-client/examples
rm -rf ./catalog/controller/extension/payment/mollie-api-client/tests

composer update
composer --working-dir=catalog/controller/extension/payment/mollie-api-client/ update

echo "1/8 Create temporary zip..."
zip -9 -rq temp.zip admin catalog
Expand All @@ -19,45 +19,45 @@ rm mollie-opencart-2.3-and-up.ocmod.zip
zip -9 -rq mollie-opencart-2.3-and-up.ocmod.zip upload LICENSE readme.md -x *.git* *.DS_Store

echo "5/8 Move files for legacy support (2.2 and lower)..."
mv ./upload/admin/controller/extension/* ./upload/admin/controller
mv ./upload/admin/language/dutch/extension/* ./upload/admin/language/dutch
mv ./upload/admin/language/nl-nl/extension/* ./upload/admin/language/nl-nl
mv ./upload/admin/language/english/extension/* ./upload/admin/language/english
mv ./upload/admin/language/en-gb/extension/* ./upload/admin/language/en-gb
mv ./upload/admin/language/french/extension/* ./upload/admin/language/french
mv ./upload/admin/language/fr-fr/extension/* ./upload/admin/language/fr-fr
mv ./upload/admin/view/template/extension/* ./upload/admin/view/template
rmdir ./upload/admin/controller/extension
rmdir ./upload/admin/language/dutch/extension
rmdir ./upload/admin/language/nl-nl/extension
rmdir ./upload/admin/language/english/extension
rmdir ./upload/admin/language/en-gb/extension
rmdir ./upload/admin/language/french/extension
rmdir ./upload/admin/language/fr-fr/extension
rmdir ./upload/admin/view/template/extension

mv ./upload/catalog/controller/extension/* ./upload/catalog/controller
mv ./upload/catalog/model/extension/* ./upload/catalog/model
mv ./upload/catalog/language/dutch/extension/* ./upload/catalog/language/dutch
mv ./upload/catalog/language/nl-nl/extension/* ./upload/catalog/language/nl-nl
mv ./upload/catalog/language/english/extension/* ./upload/catalog/language/english
mv ./upload/catalog/language/en-gb/extension/* ./upload/catalog/language/en-gb
mv ./upload/catalog/language/french/extension/* ./upload/catalog/language/french
mv ./upload/catalog/language/fr-fr/extension/* ./upload/catalog/language/fr-fr
mv ./upload/catalog/view/theme/default/template/extension/* ./upload/catalog/view/theme/default/template
rmdir ./upload/catalog/controller/extension
rmdir ./upload/catalog/model/extension
rmdir ./upload/catalog/language/dutch/extension
rmdir ./upload/catalog/language/nl-nl/extension
rmdir ./upload/catalog/language/english/extension
rmdir ./upload/catalog/language/en-gb/extension
rmdir ./upload/catalog/language/french/extension
rmdir ./upload/catalog/language/fr-fr/extension
rmdir ./upload/catalog/view/theme/default/template/extension
#mv ./upload/admin/controller/extension/* ./upload/admin/controller
#mv ./upload/admin/language/dutch/extension/* ./upload/admin/language/dutch
#mv ./upload/admin/language/nl-nl/extension/* ./upload/admin/language/nl-nl
#mv ./upload/admin/language/english/extension/* ./upload/admin/language/english
#mv ./upload/admin/language/en-gb/extension/* ./upload/admin/language/en-gb
#mv ./upload/admin/language/french/extension/* ./upload/admin/language/french
#mv ./upload/admin/language/fr-fr/extension/* ./upload/admin/language/fr-fr
#mv ./upload/admin/view/template/extension/* ./upload/admin/view/template
#rmdir ./upload/admin/controller/extension
#rmdir ./upload/admin/language/dutch/extension
#rmdir ./upload/admin/language/nl-nl/extension
#rmdir ./upload/admin/language/english/extension
#rmdir ./upload/admin/language/en-gb/extension
#rmdir ./upload/admin/language/french/extension
#rmdir ./upload/admin/language/fr-fr/extension
#rmdir ./upload/admin/view/template/extension
#
#mv ./upload/catalog/controller/extension/* ./upload/catalog/controller
#mv ./upload/catalog/model/extension/* ./upload/catalog/model
#mv ./upload/catalog/language/dutch/extension/* ./upload/catalog/language/dutch
#mv ./upload/catalog/language/nl-nl/extension/* ./upload/catalog/language/nl-nl
#mv ./upload/catalog/language/english/extension/* ./upload/catalog/language/english
#mv ./upload/catalog/language/en-gb/extension/* ./upload/catalog/language/en-gb
#mv ./upload/catalog/language/french/extension/* ./upload/catalog/language/french
#mv ./upload/catalog/language/fr-fr/extension/* ./upload/catalog/language/fr-fr
#mv ./upload/catalog/view/theme/default/template/extension/* ./upload/catalog/view/theme/default/template
#rmdir ./upload/catalog/controller/extension
#rmdir ./upload/catalog/model/extension
#rmdir ./upload/catalog/language/dutch/extension
#rmdir ./upload/catalog/language/nl-nl/extension
#rmdir ./upload/catalog/language/english/extension
#rmdir ./upload/catalog/language/en-gb/extension
#rmdir ./upload/catalog/language/french/extension
#rmdir ./upload/catalog/language/fr-fr/extension
#rmdir ./upload/catalog/view/theme/default/template/extension

echo "6/8 Adjust files for legacy support (2.2 and lower)..."
echo "--------------------------------------------------------------------";
sh ./editFiles.sh
#sh ./editFiles.sh
echo "--------------------------------------------------------------------";

echo "7/8 Create zip for legacy support (2.2 and lower)..."
Expand Down

0 comments on commit 4236f61

Please sign in to comment.