WebsiteBaker Community Forum

General Community => Global WebsiteBaker 2.8.x discussion => Topic started by: bsdzilla on July 20, 2012, 03:53:03 PM

Title: account/signup.php
Post by: bsdzilla 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?

Title: Re: account/signup.php
Post by: bsdzilla on July 23, 2012, 09:56:06 AM
I'm trying to discuss/report a possible bug. Any feedback?
Title: Re: account/signup.php
Post by: marmot 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
Title: Re: account/signup.php
Post by: bsdzilla 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.