Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update for phpBB 3.1 #191

Closed
scootergrisen opened this issue Jan 30, 2015 · 4 comments
Closed

Update for phpBB 3.1 #191

scootergrisen opened this issue Jan 30, 2015 · 4 comments

Comments

@scootergrisen
Copy link

Seems direct access to $_SERVER is not allowed in phpBB 3.1.
So could you update the code so it works with phpBB 3.1 ?

@Frug
Copy link
Owner

Frug commented Feb 22, 2015

See issue #183

@Frug Frug closed this as completed Feb 22, 2015
@s-s-s
Copy link

s-s-s commented Mar 20, 2015

@scootergrisen, try edit code in line 31 of AJAXChatLanguage.php like this:

// if(empty($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
if(empty($request->server['HTTP_ACCEPT_LANGUAGE'])) {

@scootergrisen
Copy link
Author

I have deleted the chat on my website now.
But as i remember $_SERVER was used in a lot of places.

@Frug
Copy link
Owner

Frug commented Mar 14, 2016

_SERVER was used in a ton of places, along with _REQUEST and _POST. The solution was to enable access to superglobals via $request->enable_super_globals(); in custom.php

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants