PrestaShop/PrestaShop-modules — pull request #384 by bellini13 (2014-08-04 11:07:01+00:00)
Title: Update paypalusa.php

Note: I have been trying to make a small change using the github website editor. However even though i am only changing 1 line, github forces the entire file contents to change. I have tried this numerous times without luck. I noticed that this file paypalusa.php is marked as an executable file, where all the other .php files in this module are not. I wonder if that is causing the issue.

Either way, the change I am making is to line 378, changing it to the following so it actually works in PS v1.4. Could you either apply this change directly for me, or fix the issue with your github repository?

Change description: "fix the paypal_usa_notify_url smarty variable, since link->getModuleLink does not exist in PS v1.4 or backwards compat"

'paypal_usa_notify_url' =>
version_compare(_PS_VERSION_, '1.5', '<') ?
(Configuration::get('PS_SSL_ENABLED') ? Tools::getShopDomainSsl(true) : Tools::getShopDomain(true)).
__PS_BASE_URI__.'modules/paypalusa/validation.php?pps=1' :
$this->context->link->getModuleLink('paypalusa', 'validation', array('pps' => 1), Configuration::get('PS_SSL_ENABLED')),