onpayio / whmcs

Module for the WHMCS system
MIT License
1 stars 1 forks source link

Added support for multiple lang. #3

Closed jhaveDK closed 1 year ago

lucasRolff commented 1 year ago

This won't work reliably.

$_SESSION['Language'] isn't set unless the user change it from the language dropdown in WHMCS. $_SESSION['Language'] is only set during language change in WHMCS.

The code would have to be expanded to take that into account and e.g. defaulting to the default language available in clientdetails.

Additionally, please remove the .onpay.php.swp file from the pull request.