mollie / OpenCart

iDEAL, Creditcard, Bancontact/Mister Cash, SOFORT, Belfius Direct Net, KBC/CBC Payment Button, Bank transfer, Bitcoin, PayPal & paysafecard for OpenCart 1.5.6+ and OpenCart 2.0+.
http://www.mollie.com
BSD 2-Clause "Simplified" License
73 stars 37 forks source link

return str_replace #14

Closed takeoffx closed 9 years ago

takeoffx commented 9 years ago

I hope to receive some information here on the following subject:

calling this function:

protected function getAdminDirectory() { return str_replace(HTTP_SERVER, '', HTTP_ADMIN); } ends in this php statement:

PHP Notice: Use of undefined constant HTTP_ADMIN - assumed 'HTTP_ADMIN' in /xx/xxx/xxx/www/catalog/controller/payment/mollie_ideal.php on line 452

This statements seems to retrieve the admin directory but the constant is undefined, I'm uncertain on where to define it there for my question would be if I could make this static since the directory is known.

If so how would it look like?

{ return str_replace(HTTP_SERVER, 'admin', admin); } Using opencart 2.0.1.1 and Mollie version 5.2.6 https://github.com/mollie/OpenCart/releases

Thank you in advanced.

lvgunst commented 9 years ago

Thanks for reporting this issue. Our module developer has created a fix which you can find in #15