[Rejected] Switching language programatically multiple time not working
If you want in a script to use first italian, after that english and after that italian again(always loading the same section) will not work.

The problem is in inc/class_language.php, line 147 require_once $lfile;
It should be only require, not require_once.

Real use case:
- admin approval registration
- default language Italian
- admin language English

Register using Italian language, the script will send and email to the admin(switch language once), after that will prepare a message for the user(switch language second time). Because of the require_once, the second switch will have no effect because that file was already required when the script started(member.php)

Messages In This Thread
Switching language programatically multiple time not working - by wyrda - 2017-06-05, 03:57 PM

Forum Jump:

Users browsing this thread: 1 Guest(s)