Author Topic: account/signup.php  (Read 3923 times)

Offline bsdzilla

  • Posts: 7
account/signup.php
« on: July 20, 2012, 03:53:03 PM »
I have multi-language sites and am starting to use the user-features of WB.

I encountered a problem when clicking on the signup link: it always came up in English instead of the currently selected language. Since all related pages, such as forgotten, al work fine in the selected language, I compared the source and discovered that only signup.php is retrieving the language :

 // Load the language file
if(!file_exists(WB_PATH.'/languages/'.DEFAULT_LANGUAGE.'.php')) {
        exit('Error loading language file '.DEFAULT_LANGUAGE.', please check configuration');
} else {
        require_once(WB_PATH.'/languages/'.DEFAULT_LANGUAGE.'.php');
        $load_language = false;
}


I removed this code, and now things are working fine. Should we consider this a bug?


Offline bsdzilla

  • Posts: 7
Re: account/signup.php
« Reply #1 on: July 23, 2012, 09:56:06 AM »
I'm trying to discuss/report a possible bug. Any feedback?

Offline marmot

  • Posts: 1103
Re: account/signup.php
« Reply #2 on: July 23, 2012, 06:51:07 PM »
Hi,

I'm trying to discuss/report a possible bug. Any feedback?
I don't see this problem on my boxes. Changing the default language changes the signup language too.
Maybe you can try to delete the browsers cache or try on an other machine or use other browser types. Just to limit the possible reasons for this issue.
This is mostly to give you some feedback, but I'm no wb official and if it was a bug, the dev team of wb had to decide whether to fix it.

regards

Offline bsdzilla

  • Posts: 7
Re: account/signup.php
« Reply #3 on: July 27, 2012, 06:37:32 PM »
Thank you, marmot.

Caching and browsers were eliminated as a cause.

And still, signup.php is the only of the related functions (such as forgot.php) that retrieves the language file, why should it do that, as the program obviously functions without it, and so do the other programs in the account directory.

 

postern-length