diff options
| author | Naglfar <naglfar@tilde.institute> | 2021-01-11 20:52:06 +0100 |
|---|---|---|
| committer | Naglfar <naglfar@tilde.institute> | 2021-01-11 20:52:06 +0100 |
| commit | 412d6cd0427f54846fe4a809fe1bc20deb7fab98 (patch) | |
| tree | 602802b4d742407b218ab01ac5277d952b11ccf8 /php/ws-procedures.php | |
| parent | bf0d6e35c962691a13c1d6f6e40cf24cf1b31f51 (diff) | |
| download | MightyWVMS-412d6cd0427f54846fe4a809fe1bc20deb7fab98.tar.gz | |
Add canonical url
Diffstat (limited to 'php/ws-procedures.php')
| -rw-r--r-- | php/ws-procedures.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/php/ws-procedures.php b/php/ws-procedures.php index d1536e7..9a0fce4 100644 --- a/php/ws-procedures.php +++ b/php/ws-procedures.php @@ -4,7 +4,7 @@ $wsdata = file($dpath.'/'.$common, FILE_IGNORE_NEW_LINES); # Language overwritten by the browser preference if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) - $wsdata[3] = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0,2); + $wsdata[4] = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0,2); -$wsdata = array_merge($wsdata, file($dpath.$wsdata[3].'/'.$common, FILE_IGNORE_NEW_LINES)); +$wsdata = array_merge($wsdata, file($dpath.$wsdata[4].'/'.$common, FILE_IGNORE_NEW_LINES)); ?> |