Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-8639

Always using English questions for QA captcha

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 3.0.6
    • 3.0.x
    • Other
    • None
    • PHP Environment:
      Database:

      If you set the default language of the board to Arabic a guest will still only see English questions.

      This is caused by the line:

      $this->question_lang = $user->data['user_lang']; 

      It's grabbing the language from the profile of Anonymous, not the board's default language.
      Also on the registration terms page, after choosing Arabic, the $user->data['user_lang'] isn't set to Arabic but stays English.

      For the posting page (captcha) this could be easily solved by using $config['default_lang'] instead of $user->data['user_lang'].
      But for the registration page you can now choose your language first... so then the user_lang should be overwritten I think.

            Kellanved Kellanved [X] (Inactive)
            Derky Derky
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: